Back to Devexpress

TreeList.ColumnPositionChanged Event

windowsforms-devexpress-dot-xtratreelist-dot-treelist-b282df70.md

latest2.8 KB
Original Source

TreeList.ColumnPositionChanged Event

Fires when a column is moved, hidden, or shown.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DXCategory("Behavior")]
public event EventHandler ColumnPositionChanged
vb
<DXCategory("Behavior")>
Public Event ColumnPositionChanged As EventHandler

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:

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

SetColumnPosition(TreeListColumn, Int32, Int32)

VisibleIndex

Visible

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace