Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GridColumn.IsGrouped Property

Gets or sets whether grid data is grouped by the specified column. This is a bindable property.

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

#Declaration

C#
public bool IsGrouped { get; set; }

#Property Value

Type Description
Boolean

true if data rows are grouped by values in this column; otherwise, false.

#Remarks

Use the IsGrouped property to group data in the grid by column values.

DataGridView allows you to group data by a single column only. When you set a column’s IsGrouped property to true, the grid discards the previously applied grouping by another column and sets that column’s IsGrouped property to false.

Another way to group data in the grid is to call the DataGridView.GroupBy method.

When you group data by a specific column, the grid combines data rows into groups so that each group contains rows with the same value in this column. The GridColumn.GroupInterval property allows you to change the default logic used to decide which rows should be grouped together. For example, when you group data by a column that contains dates, you can set this column’s GroupInterval property to DateYear to combine data rows into groups by the year part of date values.

To cancel grouping, call the DataGridView.ClearGrouping method.

See Also