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
public bool IsGrouped { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
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.