Skip to main content

TcxPivotGridFieldGroup.AddFields(TcxPivotGridField[]) Method

Adds an array of fields to the current group.

Declaration

procedure AddFields(AFields: array of TcxPivotGridField);

Parameters

Name Type
AFields TcxPivotGridField

Remarks

Call this method to add an array of fields passed as the AFields parameter to the Fields collection of the current group. Individual fields can be added using the group’s Add method.

The following code snippet demonstrates how to create a field group and add the PivotGridQuantity, PivotGridPaymentAmount fields to it.

// ...
  with PivotGrid.Groups.Add do
    AddFields([PivotGridQuantity, PivotGridPaymentAmount]);

Note

A field cannot be added to a group if it already belongs to another group.

See Also