Back to Devexpress

TcxCustomGridTableView.SortedItemCount Property

vcl-cxgridcustomtableview-dot-tcxcustomgridtableview-79ae88ae.md

latest2.6 KB
Original Source

TcxCustomGridTableView.SortedItemCount Property

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

Declaration

delphi
property SortedItemCount: Integer read;

Property Value

TypeDescription
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

TcxCustomGridTableView.ItemCount Property

TcxCustomGridTableView.VisibleItemCount Property

TcxCustomGridTableView Class

TcxCustomGridTableView Members

cxGridCustomTableView Unit