Back to Devexpress

PivotGridGroup.AddRange(PivotGridFieldBase[]) Method

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

latest2.2 KB
Original Source

PivotGridGroup.AddRange(PivotGridFieldBase[]) Method

Adds an array of fields 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 AddRange(
    PivotGridFieldBase[] fields
)
vb
Public Sub AddRange(
    fields As PivotGridFieldBase()
)

Parameters

NameTypeDescription
fieldsPivotGridFieldBase[]

An array of PivotGridFieldBase descendants to add to the group’s field collection.

|

Remarks

The AddRange method adds a group of existing fields to the group’s PivotGridGroup.Fields collection. Individual fields can be added using the PivotGridGroup.Add method.

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

See Also

Add(PivotGridFieldBase)

Remove(PivotGridFieldBase)

PivotGridGroup Class

PivotGridGroup Members

DevExpress.XtraPivotGrid Namespace