Skip to main content

TcxPivotGridField.GroupIndex Property

Specifies the index of the group in which the field is contained.

Declaration

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

Property Value

Type
Integer

Remarks

Multiple fields can be combined into a group via the pivot grid’s Groups property. These fields cannot be separated and are always moved together. Use the GroupIndex property to specify the group in which the current field will be displayed. The group is determined using its index in the pivot grid’s Groups zero-based collection. A value of -1 for this property indicates that the field doesn’t belong to any group.

Alternatively, you can specify the group via the field’s Group property.

Setting the GroupIndex property removes the field from the group that owns it (if any) and places it as the last element into the specified group. This automatically moves the field into the area in which the destination group is located and also rearranges all the fields that follow the field in the source and destination groups. To control the field’s position within a group, use the group’s Insert method. To remove a field from a group, set the field’s GroupIndex property to -1.

The default value of the GroupIndex property is -1.

See Also