GridColumn.Group() Method

Groups data by the values of the current column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v21.2.dll


public void Group()


Grid Views support grouping data by an unlimited number of columns. To group data by the values of a given column, call its Group method. Calling this method has no effect if data is already grouped by the values of this column. If several columns are involved in grouping, the current column will reside at the bottom grouping level after calling its Group method.

To ungroup data by the values of a single column, use the column’s GridColumn.UnGroup method. To clear grouping completely, call the View’s GridView.ClearGrouping method.

Please refer to the Grouping and End-User Capabilities: Grouping topics for detailed information on data grouping in the Grid Control.

See Also