Back to Devexpress

TreeList.ColumnChanged Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-096387ef.md

latest3.7 KB
Original Source

TreeList.ColumnChanged Event

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

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public event ColumnChangedEventHandler ColumnChanged
vb
Public Event ColumnChanged As ColumnChangedEventHandler

Event Data

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

PropertyDescription
ColumnGets 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.

ActionPerformed ByParameter Value
A single column has been added.TreeListColumnCollection.Add, TreeListColumnCollection.InsertThe added column.
A collection of columns has been added.TreeListColumnCollection.AddRangenull ( Nothing in Visual Basic)
A column has been moved within the collection.TreeListColumn.AbsoluteIndexThe moved column.
A column has been removed from the collection.TreeListColumnCollection.Removenull ( 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

Columns

Add

AddRange(TreeListColumn[])

Insert(Int32)

Remove(TreeListColumn)

AbsoluteIndex

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace