Back to Devexpress

TreeList.FocusedColumnChanged Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-07299c56.md

latest2.8 KB
Original Source

TreeList.FocusedColumnChanged Event

Fires immediately after focus has been moved from a column.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DXCategory("Property Changed")]
public event FocusedColumnChangedEventHandler FocusedColumnChanged
vb
<DXCategory("Property Changed")>
Public Event FocusedColumnChanged As FocusedColumnChangedEventHandler

Event Data

The FocusedColumnChanged event's data class is FocusedColumnChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
ColumnGets a Tree List column. Inherited from ColumnChangedEventArgs.
OldColumnGets 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.

See Also

Columns

FocusedColumn

VisibleIndex

AppendNode

ClearNodes()

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace