RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListView.SortType Property

Determines if and how the items in the list are automatically sorted.

Pascal
property SortType: TSortType;
C++
__property TSortType SortType;

Set SortType to specify the order of items in the list. If SortType is not stNone, the list items in the Items property are automatically sorted. Once a list view is sorted, the original order is lost. That is, setting the SortType back to stNone will not restore the original order of items.

Note: If SortType is stData or stBoth, provide an OnCompare event handler to compare data values.
Note: If the list view uses work areas, sorting items only compares each item to the other items in its work area.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!