Back to Devexpress

PivotGridGroupCollection.GetGroupByField(PivotGridFieldBase) Method

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridgroupcollection-dot-getgroupbyfield-x28-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-x29.md

latest2.0 KB
Original Source

PivotGridGroupCollection.GetGroupByField(PivotGridFieldBase) Method

Returns the group which owns the specified field.

Namespace : DevExpress.XtraPivotGrid

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

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

Declaration

csharp
public PivotGridGroup GetGroupByField(
    PivotGridFieldBase field
)
vb
Public Function GetGroupByField(
    field As PivotGridFieldBase
) As PivotGridGroup

Parameters

NameTypeDescription
fieldPivotGridFieldBase

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

|

Returns

TypeDescription
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

Contains

PivotGridGroupCollection Class

PivotGridGroupCollection Members

DevExpress.XtraPivotGrid Namespace