Skip to main content

PivotGridGroup.CanAdd(PivotGridFieldBase) Method

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

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v24.1.Core.dll

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

Declaration

public bool CanAdd(
    PivotGridFieldBase field
)

Parameters

Name Type Description
field PivotGridFieldBase

A PivotGridFieldBase descendant which represents the field being examined.

Returns

Type Description
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