FocusedColumn Property
See Also

Description
The FocusedColumn property returns a reference to the Column that contains the GridRecordItem (SubItem) that currently has focus in the GridControl.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property FocusedColumn() As [GridColumn](XtremeGridControl~GridColumn.md)
Remarks
The FocusedColumn property holds a reference to the column that contains the GridRecordItem that currently has focus. The FocusSubItems property must be TRUE to use the FocusedColumn property. If FocusSubItems is FALSE, then the FocusedColumn property will never get set.
Example
FocusedColumn Sample (Visual Basic)
This sample illustrates how to determine the column of the currently focused item.
' Subitems can receive focus
wndGridControl.FocusSubItems = True
Private Sub wndGridControl_SelectionChanged()
If Not wndGridControl.FocusedColumn Is Nothing Then
' Column with subitem that currently has focus
Debug.Print "Focused Column " & wndGridControl.FocusedColumn.Caption
End If
End Sub
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.