TreeList.FocusedColumnChanged Event
Fires immediately after focus has been moved from a column.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v20.1.dll
NuGet Package: DevExpress.Win.TreeList
Declaration
[DXCategory("Property Changed")]
public event FocusedColumnChangedEventHandler FocusedColumnChanged
Event Data
The FocusedColumnChanged event's data class is FocusedColumnChangedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Column | Gets a Tree List column. Inherited from ColumnChangedEventArgs. |
OldColumn | Gets the previously focused column. |
Remarks
Write a FocusedColumnChanged event handler to perform specific actions each time focus has been moved from a column. There are two general cases in which this event fires:
- Focus is moved to another column. This takes place when end-users focus cells in other columns or change column order. Event is also raised when the same is performed via code.
- None of the columns is focused. This can take place when the focused column is deleted, nodes are added, etc.
This event handler receives a FocusedColumnChangedEventArgs parameter type. It allows you to determine previously and currently focused columns.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the FocusedColumnChanged event.
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.