Back to Devexpress

PivotGridGroupCollection.Add(PivotGridFieldBase[], String) Method

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridgroupcollection-dot-add-x28-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-system-dot-string-x29.md

latest2.0 KB
Original Source

PivotGridGroupCollection.Add(PivotGridFieldBase[], String) Method

Creates a group with the specified caption, containing the specified fields.

Namespace : DevExpress.XtraPivotGrid

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

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

Declaration

csharp
public PivotGridGroup Add(
    PivotGridFieldBase[] fields,
    string caption
)
vb
Public Function Add(
    fields As PivotGridFieldBase(),
    caption As String
) As PivotGridGroup

Parameters

NameTypeDescription
fieldsPivotGridFieldBase[]

An array of fields to be added to the created group.

| | caption | String |

A caption for the group. This value is assigned to the PivotGridGroup.Caption property.

|

Returns

TypeDescription
PivotGridGroup

The created PivotGridGroup object.

|

See Also

PivotGridGroupCollection Class

PivotGridGroupCollection Members

DevExpress.XtraPivotGrid Namespace