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

GridColumn.Group() Method

Groups data by the values of the current column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

public void Group()

Remarks

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Group() method.

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