Skip to main content

PivotGridGroupCollection.GetGroupByField(PivotGridFieldBase) Method

Returns the group which owns the specified field.

Namespace: DevExpress.XtraPivotGrid

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

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

Declaration

public PivotGridGroup GetGroupByField(
    PivotGridFieldBase field
)

Parameters

Name Type Description
field PivotGridFieldBase

A PivotGridFieldBase descendant which represents the field whose owning group is to be returned.

Returns

Type Description
PivotGridGroup

A PivotGridGroup object which represents a group that owns the specified field. null (Nothing in Visual Basic) if the specified field doesn’t belong to any group within the collection.

See Also