Skip to main content
A newer version of this page is available. .

GridViewBase.AllowGrouping Property

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.v18.2.dll

Declaration

public bool AllowGrouping { get; set; }

Property Value

Type Description
Boolean

true to allow an end-user to group data; otherwise, false.

Remarks

End-users can group data in two ways:

  • Drag a column’s header to the group panel (requires the GridViewBase.ShowGroupPanel property to be set to true).
  • Invoke a column’s context menu by right-clicking its header, and select the Group By This Column menu item.

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 Overview.

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.

See Also