Skip to main content

TdxListViewSortType Enum

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

Declaration

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