TdxCustomListView.CustomSort(TdxListViewCompareProc,TdxNativeInt) Method
Custom sorts items.
#Declaration
function CustomSort(ASortProc: TdxListViewCompareProc; AData: TdxNativeInt): Boolean;
#Parameters
Name | Type | Description |
---|---|---|
ASort |
Tdx |
A custom comparison routine. |
AData | Tdx |
Specifies a pointer to additional data for the custom comparison routine. |
#Returns
Type | Description |
---|---|
Boolean | True if the sort operation is successful; otherwise, False. |
#Remarks
You can handle the List View’s OnCompare event to implement a custom item sorting algorithm.