wpf-devexpress-dot-xpf-dot-grid-dot-gridviewbase-03595497.md
Gets or sets a value that specifies whether an end-user can group data. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool AllowGrouping { get; set; }
Public Property AllowGrouping As Boolean
| Type | Description |
|---|---|
| Boolean |
true to allow an end-user to group data; otherwise, false.
|
End-users can group data in two ways:
Both methods are allowed if the view’s AllowGrouping property is set to true.
Individual columns provide the GridColumn.AllowGrouping property, allowing the default behavior specified by the view, to be overridden. To learn more, see Grouping.
Note
Data grouping requires data sorting to be performed. End-users can group data only if data sorting is allowed.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowGrouping 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.
wpf-grid-sync-isnodeexpanded-with-view-model/CS/DevExpress.Example04/MainWindow.xaml#L43
<dxg:GridControl.View>
<dxg:TableView CellValueChanging="TableView_CellValueChanging" AllowGrouping="False"/>
</dxg:GridControl.View>
wpf-pivot-grid-implement-a-custom-filter-popup/CS/DXPivotGrid_CustomFilterPopup/MainWindow.xaml#L37
ShowCheckBoxSelectorColumn="True" CheckBoxSelectorColumnWidth="35"
ShowGroupPanel="False" AllowGrouping="False" ShowIndicator="False"
ScrollBarAnnotationMode="Selected"
See Also