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

TdxListViewSortType Enum

Enumerates criteria by which the List View can sort its items.

#Declaration

Delphi
TdxListViewSortType = (
    None,
    Data,
    Text,
    Both
);

#Members

Name Description
None

The control sorts no list items.

Data

The control sorts list items by their Data properties. Note that you should handle the control’s OnCompare event to compare items by their Data property. Otherwise, this option is identical to None.

Text

The control sorts items by their Caption property values.

Both

The control sorts items by their Caption and Data properties. However, the built-in comparison routine ignores Data property values during sort operations. Handle the control’s OnCompare event to sort items against these values.

#Remarks

The List View’s SortType property references the TdxListViewSortType type.

Note

TdxListViewSortType is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxListViewSortType.Text (in Delphi) or TdxListViewSortType::Text (in C++Builder) to refer to the Text value in code.

See Also