RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlItems.SortType Property

Indicates how the items should be sorted.

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

Use SortType to indicate how you want the items sorted, if at all. The following table lists the possible values:

Value 
Meaning 
stNone  
Items are not automatically sorted. You can still sort the items explicitly by calling the Sort or CustomSort method.  
stData  
Items are sorted based on the value of their Data property. You must supply an OnCompare event handler to specify the sort order.  
stText  
Items are sorted base on the value of their Caption property. The CaseSensitive property specifies whether comparisons are case-sensitive.  
stBoth  
Items are sorted based on an OnCompare event handler if one is assigned, otherwise based on the value of their Caption property.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!