Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.FocusedColumnChanged Event

Fires immediately after focus has been moved from a column.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, 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.

See Also