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

GridView.ClearGrouping() Method

Clears the grouping applied to the View and returns the group columns to display in the View.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

public void ClearGrouping()

Remarks

The method clears grouping and adds the group columns to the end of the ColumnView.Columns collection.

If you need to cancel grouping by a particular column, set the column’s GridColumn.GroupIndex property to -1. In this case, the column is hidden from the View. Use its GridColumn.VisibleIndex property to show it again.

Please refer to the Grouping topic for additional information on grouping data.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ClearGrouping() 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