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

TcxCustomShellListView.Sort(Integer,Boolean) Method

Sorts the shell list view.

#Declaration

Delphi
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