Skip to main content

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

#Declaration

[XtraSerializableProperty]
public bool AllowGrouping { get; set; }

#Property Value

Type Description
Boolean

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

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

See Also