TcxCustomGridTableView.SortedItems Property
Provides indexed access to all sorted data items.
#Declaration
property SortedItems[Index: Integer]: TcxCustomGridTableItem read;
#Property Value
Type | Description |
---|---|
Tcx |
A data item whose Sort The returned data item’s Sort You need to cast the returned object to the corresponding terminal Tcx Tip You can call the returned object’s Class |
#Remarks
The grid View allows you to sort data against one or multiple data items in any order. The SortedItems
property provides indexed access to all data items involved in complex sort operations applied to grid data. To identify the number of data items accessible through the SortedItems
property, use the SortedItemCount property.
To include a data item in the active sort operation, set the data item’s SortOrder property to soAscending or soDescending. The SortedItemCount property value increases by one as a result, and the data item’s order in the sort operation and the SortedItems
collection depends on the SortIndex property value.
If a data item’s SortOrder property value changes to soNone, the data item leaves the SortedItems
collection, and the SortedItemCount property value decreases by one.