TreeList.ColumnPositionChanged Event
Fires when a column is moved, hidden, or shown.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
Event Data
The ColumnPositionChanged event's data class is EventArgs.
Remarks
The ColumnPositionChanged event allows you to respond to changing the column position in the TreeList. This event fires each time when:
- an end-user changes the position of a column using drag and drop operations (see TreeListOptionsCustomization.AllowColumnMoving),
- the column position is changed in code using the TreeListColumn.VisibleIndex property,
- a column is shown or hidden using the TreeListColumn.Visible property,
- a column is moved using the TreeList.SetColumnPosition method.
The sender parameter, passed to the event handler, returns the TreeListColumn object that represents the column being moved. You can read the TreeListColumn.VisibleIndex property to get the new position of the column. If the column is hidden, this property returns -1.
See Also