Back to Devexpress

GridView.ClearGrouping() Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-96ccce4c.md

latest1.9 KB
Original Source

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

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public void ClearGrouping()
vb
Public Sub 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.

See Also

Columns

GroupIndex

Data Grouping

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace