Skip to main content

TcxCustomGridTableView.SortedItemCount Property

Returns the number of sorted data items in the grid View.

Declaration

property SortedItemCount: Integer read;

Property Value

Type Description
Integer

The number of sorted data items accessible through the SortedItems property.

The returned value matches the number of data items whose SortOrder property value is soAscending or soDescending.

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 data. To identify the number of data items accessible through the SortedItems property, use the SortedItemCount property.

To include a data item into the active sort operation, set the 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.

See Also