TcxCustomShellListView.Sorting Property
Specifies whether end-users can sort the shell list view’s content by clicking column headers.
Declaration
property Sorting: Boolean read; write; default False;
Property Value
Type | Default |
---|---|
Boolean | False |
Remarks
Set this property to True
to let end-users click a column’s header to sort the shell list view contents by the column’s values (folder and file objects are sorted separately).
The sort glyph indicates which column provides values for sorting and its sort order (ascending or descending). Clicking the column’s header again reverses the sort order.
You can handle the OnCompare event to provide custom sorting logic.
Note
The Sorting
property is in effect only if the ViewStyle and ShowColumnHeaders properties are set to vsReport
and True
, respectively.
The current version supports sorting by one column only. To clear sorting, set the Sorting
property to False
.
The Sorting
property’s default value is False
.