Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxPivotGridFieldGroup.AddFields(TcxPivotGridField[]) Method

Adds an array of fields to the current group.

#Declaration

Delphi
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.

Delphi
// ...
  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