Back to Devexpress

PivotGridGroup.Add(PivotGridFieldBase) Method

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridgroup-dot-add-x28-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-x29.md

latest2.0 KB
Original Source

PivotGridGroup.Add(PivotGridFieldBase) Method

Adds the specified field to the PivotGridGroup.Fields collection of the current group.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
public void Add(
    PivotGridFieldBase field
)
vb
Public Sub Add(
    field As PivotGridFieldBase
)

Parameters

NameTypeDescription
fieldPivotGridFieldBase

A PivotGridFieldBase descendant which represents the field to add.

|

Remarks

A field cannot be added to the group if it already belongs to another group. To add several fields to the group use the PivotGridGroup.AddRange method.

See Also

AddRange(PivotGridFieldBase[])

Remove(PivotGridFieldBase)

PivotGridGroup Class

PivotGridGroup Members

DevExpress.XtraPivotGrid Namespace