TcxCustomShellListView.Sort(Integer,Boolean) Method
Sorts the shell list view.
Declaration
procedure Sort(AColumnIndex: Integer; AIsAscending: Boolean); overload;
Parameters
Name | Type |
---|---|
AColumnIndex | Integer |
AIsAscending | Boolean |
Remarks
The first overloaded method sorts the shell list view’s content by values of a column marked by the sort glyph using the sort order indicated by this glyph. If no column is marked, the values of the first visible column and the ascending sort order are used.
The second overloaded method allows you to specify a column to use and its sort order, via the AColumnIndex
and AIsAscending
parameters.
Calling the Sort
method fires the OnCompare event, enabling you to customize the order in which the items will be displayed in the shell list view.
Use the Sorting property to control if end-users can sort the shell list view via column header clicks.
See Also