Back to Devexpress

PivotGridGroup.CanAdd(PivotGridFieldBase) Method

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

latest2.0 KB
Original Source

PivotGridGroup.CanAdd(PivotGridFieldBase) Method

Indicates whether the specified field can be added to the field group.

Namespace : DevExpress.XtraPivotGrid

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

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

Declaration

csharp
public bool CanAdd(
    PivotGridFieldBase field
)
vb
Public Function CanAdd(
    field As PivotGridFieldBase
) As Boolean

Parameters

NameTypeDescription
fieldPivotGridFieldBase

A PivotGridFieldBase descendant which represents the field being examined.

|

Returns

TypeDescription
Boolean

true if the specified field can be added to the group; otherwise, false.

|

Remarks

A field cannot be added to the field groups if it’s already contained within the group.

See Also

Add(PivotGridFieldBase)

AddRange(PivotGridFieldBase[])

PivotGridGroup Class

PivotGridGroup Members

DevExpress.XtraPivotGrid Namespace