Back to Devexpress

FocusedColumnChangedEventArgs.PrevFocusedColumn Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-focusedcolumnchangedeventargs-bfae1aa1.md

latest2.9 KB
Original Source

FocusedColumnChangedEventArgs.PrevFocusedColumn Property

Gets the previously focused column.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public GridColumn PrevFocusedColumn { get; }
vb
Public ReadOnly Property PrevFocusedColumn As GridColumn

Property Value

TypeDescription
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

csharp
((GridView)sender).InvalidateColumnHeader(e.FocusedColumn);
    ((GridView)sender).InvalidateColumnHeader(e.PrevFocusedColumn);
}

winforms-grid-hot-track-focused-column-header/VB/WindowsApplication1/Form1.vb#L40

vb
CType(sender, GridView).InvalidateColumnHeader(e.FocusedColumn)
    CType(sender, GridView).InvalidateColumnHeader(e.PrevFocusedColumn)
End Sub

See Also

FocusedColumn

FocusedColumnChangedEventArgs Class

FocusedColumnChangedEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace