Back to Devexpress

TcxTreeListColumn.SortOrder Property

vcl-cxtl-dot-tcxtreelistcolumn-c10e508a.md

latest2.1 KB
Original Source

TcxTreeListColumn.SortOrder Property

Specifies the sort order of the column’s values.

Declaration

delphi
property SortOrder: TcxDataSortOrder read; write; default soNone;

Property Value

TypeDefault
TcxDataSortOrdersoNone

Remarks

Refer to the TcxDataSortOrder type description, to learn about available sorting options.

To provide custom sorting logic for nodes, handle the TreeList control’s OnCompare event.

Note

To allow sorting nodes by multiple columns, set the TreeList control’s OptionsBehavior.MultiSort property to True. In this instance, assigning a value other than soNone to the SortOrder property automatically appends the column to the SortedColumns collection, and sets the column’s SortIndex property. If the OptionsBehavior.MultiSort property is set to False , the SortedColumns collection is cleared before the column is added to it.

The default value of the SortOrder property is soNone.

See Also

TcxCustomTreeList.ClearSorting

TcxTreeListNode.AlphaSort

TcxTreeListOptionsData.AnsiSort

TcxTreeListOptionsData.MultiThreadedSorting

Example: TreeList.Sorted, TreeList.SortedColumnCount, TreeList.SortedColumns, Column.SortOrder

TcxTreeListColumn Class

TcxTreeListColumn Members

cxTL Unit