BCGControlBar Library for .NET
SetFocusedItem Method




Location of focused item (in column;row coordinates)
Item. Can be null. If item is not null this method checks for "merged" status and adjusts selection range accordingly - in case of merged cell the selection should cover child items as well.
Specifies whether to clear previous selection.
Specifies whether to redraw the grid control.
Focuses an item located at the specified point.
Syntax
'Declaration
 
Public Sub SetFocusedItem( _
   ByVal location As Point, _
   ByVal item As GridDataItem, _
   ByVal clearSelection As Boolean, _
   ByVal redraw As Boolean _
) 
'Usage
 
Dim instance As GridControl
Dim location As Point
Dim item As GridDataItem
Dim clearSelection As Boolean
Dim redraw As Boolean
 
instance.SetFocusedItem(location, item, clearSelection, redraw)
public void SetFocusedItem( 
   Point location,
   GridDataItem item,
   bool clearSelection,
   bool redraw
)
public: void SetFocusedItem( 
   Point location,
   GridDataItem* item,
   bool clearSelection,
   bool redraw
) 
public:
void SetFocusedItem( 
   Point location,
   GridDataItem^ item,
   bool clearSelection,
   bool redraw
) 

Parameters

location
Location of focused item (in column;row coordinates)
item
Item. Can be null. If item is not null this method checks for "merged" status and adjusts selection range accordingly - in case of merged cell the selection should cover child items as well.
clearSelection
Specifies whether to clear previous selection.
redraw
Specifies whether to redraw the grid control.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridControl Class
GridControl Members

Send Feedback