Skip to main content

TcxCustomGridTableItem.SortIndex Property

Specifies the data item’s index in a complex sort operation applied to the parent grid View.

Declaration

property SortIndex: Integer read; write; default -1;

Property Value

Type Description
Integer

The data item’s index in the parent grid View’s SortedItems collection.

If the property value is -1 (default), the parent grid View does not sort data against the current data item.

Remarks

Set the SortOrder property to soAscending or soDescending to sort data against the data item in ascending or descending order. The SortIndex property allows you to change the data item’s order in complex sort operations when the parent grid View sorts data against multiple data items simultaneously.

Tip

You can call the parent grid View’s DataController.ClearSorting procedure to clear the current sort order.

Default Value

The SortIndex property’s default value is -1.

The default SortIndex property value indicates that the parent grid View does not sort data against the current data item.

See Also