Fires immediately after the column collection or an individual column has been modified.
public event ColumnChangedEventHandler ColumnChanged
Public Event ColumnChanged As ColumnChangedEventHandler
The ColumnChanged event's data class is ColumnChangedEventArgs. The following properties provide information specific to this event:
|Column||Gets a Tree List column.|
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.