Skip to main content
A newer version of this page is available. .

TreeList.ColumnChanged Event

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v18.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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColumnChanged 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.

See Also