Skip to main content

TdxCustomShellListView.Sort(Integer,Boolean) Method

Sorts content of the Shell List View control against the specified column.

Declaration

procedure Sort(AColumnIndex: Integer; AIsAscending: Boolean); overload;

Parameters

Name Type Description
AColumnIndex Integer

The index of the target column against which the sort operation is performed.

AIsAscending Boolean

If True, the procedure sorts the control’s content in ascending order. If False, the content is sorted in descending order.

Remarks

Call the Sort procedure to sort displayed shell items. A Sort procedure call raises the OnCompare event multiple times, once for every two shell items. You can handle this event to sort shell items in a custom manner. The OnSortCompleted event occurs once the sort operation is complete.

See Also