TcxTreeListColumn.SortOrder Property
Specifies the sort order of the column’s values.
Declaration
property SortOrder: TcxDataSortOrder read; write; default soNone;
Property Value
Type | Default |
---|---|
TcxDataSortOrder | soNone |
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