Skip to main content

TreeList.ColumnChanged Event

Fires immediately after the column collection or an individual column has been modified.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

Declaration

public event ColumnChangedEventHandler ColumnChanged

Event Data

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

Property Description
Column Gets a Tree List column.

Remarks

You can write a ColumnChanged event handler to respond to column collection changes. The list below points out the possible column collection modifications that lead to raising the event. It also contains a description for the ColumnChangedEventArgs.Column parameter in each situation.

Action Performed By Parameter Value
A single column has been added. TreeListColumnCollection.Add, TreeListColumnCollection.Insert The added column.
A collection of columns has been added. TreeListColumnCollection.AddRange null (Nothing in Visual Basic)
A column has been moved within the collection. TreeListColumn.AbsoluteIndex The moved column.
A column has been removed from the collection. TreeListColumnCollection.Remove null (Nothing in Visual Basic)

You can also use the ColumnChanged event to perform specific actions each time a property of a column has been changed. In this case, the ColumnChangedEventArgs.Column parameter transmits the column whose property value has been changed.

See Also