Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomListView.CustomSort(TdxListViewCompareProc,TdxNativeInt) Method

Custom sorts items.

#Declaration

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

#Parameters

Name Type Description
ASortProc TdxListViewCompareProc

A custom comparison routine.

AData TdxNativeInt

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.

See Also