windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcontrol-b581ea0c.md
Gets the collection of field groups.
Namespace : DevExpress.XtraPivotGrid
Assembly : DevExpress.XtraPivotGrid.v25.2.dll
NuGet Package : DevExpress.Win.PivotGrid
[Browsable(false)]
[XtraSerializableProperty(XtraSerializationVisibility.Collection, true, false, true, 100)]
[XtraSerializablePropertyId(3)]
public PivotGridGroupCollection Groups { get; }
<Browsable(False)>
<XtraSerializableProperty(XtraSerializationVisibility.Collection, True, False, True, 100)>
<XtraSerializablePropertyId(3)>
Public ReadOnly Property Groups As PivotGridGroupCollection
| Type | Description |
|---|---|
| PivotGridGroupCollection |
A PivotGridGroupCollection object which represents a collection of field groups.
|
Individual fields can be combined into a group which is represented by a PivotGridGroup object. If specific fields belong to a group they are treated as a whole and are always displayed within the same area. An end-user cannot separate these fields by dragging one of them to a different area or hiding it to the Customization Form.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Groups property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-pivot-grid-implement-group-filter/CS/GroupFilter/Form1.cs#L17
// Gets the field group from the collection.
PivotGridGroup OrderDateGroup = pivotGridControl1.Groups[0];
winforms-pivot-grid-implement-group-filter/VB/GroupFilter/Form1.vb#L19
' Gets the field group from the collection.
Dim OrderDateGroup As PivotGridGroup = pivotGridControl1.Groups(0)
See Also