Skip to main content

TcxPivotGridField.Group Property

Specifies the group in which the field is contained.

Declaration

property Group: TcxPivotGridFieldGroup read; write;

Property Value

Type
TcxPivotGridFieldGroup

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 Group property to specify the field group in which the current field will be displayed. The property’s value of nil indicates that the field doesn’t belong to any field group.

Alternatively, you can use the field’s GroupIndex property to specify a particular group from the pivot grid’s Groups zero-based collection.

Setting the Group property removes the field from the group that owns it (if any) and places it into the specified group as the last element. This automatically moves the field into an 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 Group property to nil.

Use the GroupExpanded property to specify the expansion state of the field within the group that owns it (if any).

See Also