windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-focusedcolumnchangedeventargs-bfae1aa1.md
Gets the previously focused column.
Namespace : DevExpress.XtraGrid.Views.Base
Assembly : DevExpress.XtraGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation
public GridColumn PrevFocusedColumn { get; }
Public ReadOnly Property PrevFocusedColumn As GridColumn
| Type | Description |
|---|---|
| GridColumn |
A GridColumn object representing the previously focused column. null ( Nothing in Visual Basic) if no column was previously focused.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PrevFocusedColumn property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-grid-hot-track-focused-column-header/CS/WindowsApplication1/Form1.cs#L39
((GridView)sender).InvalidateColumnHeader(e.FocusedColumn);
((GridView)sender).InvalidateColumnHeader(e.PrevFocusedColumn);
}
winforms-grid-hot-track-focused-column-header/VB/WindowsApplication1/Form1.vb#L40
CType(sender, GridView).InvalidateColumnHeader(e.FocusedColumn)
CType(sender, GridView).InvalidateColumnHeader(e.PrevFocusedColumn)
End Sub
See Also
FocusedColumnChangedEventArgs Class