Back to Devexpress

TdxCustomListView.CustomSort(TdxListViewCompareProc,TdxNativeInt) Method

vcl-dxlistview-dot-tdxcustomlistview-dot-customsort-x28-dxlistview-dot-tdxlistviewcompareproc-dxcore-dot-tdxnativeint-x29.md

latest1.1 KB
Original Source

TdxCustomListView.CustomSort(TdxListViewCompareProc,TdxNativeInt) Method

Custom sorts items.

Declaration

delphi
function CustomSort(ASortProc: TdxListViewCompareProc; AData: TdxNativeInt): Boolean;

Parameters

NameTypeDescription
ASortProcTdxListViewCompareProc

A custom comparison routine.

| | AData | TdxNativeInt |

Specifies a pointer to additional data for the custom comparison routine.

|

Returns

TypeDescription
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.

See Also

TdxCustomListView Class

TdxCustomListView Members

dxListView Unit