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

TdxCustomShellListView.Sort Method

In This Article

Sorts content of the Shell List View control against the column marked by the sort glyph using the sort order indicated by it.

#Declaration

Delphi
procedure Sort; overload;

#Remarks

If the Sorting property is set to True, a user can click a column’s header to sort the Shell List View control’s content against that column and change the sort order. Folders and files are sorted separately.

Note

Users can sort shell items only if the ViewStyle property is set to TdxListViewStyle.Report because the Shell List View control displays columns and column headers only in Report mode.

Call the Sort procedure to sort files and folders according to the current sort settings. 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.

You can call the Sort(Integer,Boolean) procedure to sort content of the Shell List View control against any column in any sort order.

See Also