The requested page is not available for the requested platform. You are viewing the content for Default platform.

GridColumn.IsGrouped Property

Gets or sets whether the grid's data is grouped by the current column.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

Declaration

public bool IsGrouped { get; set; }

Property Value

Type Description
Boolean

true, if the data is grouped by values of this column; otherwise, false.

Remarks

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

DataGridView allows grouping 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 use the DataGridView.GroupBy method.

When you group data by a specific column, the grid combines data rows into groups. Each group contains rows with the same value in the field (column) for which grouping has been applied. 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 ColumnGroupInterval.DateYear to combine data rows into groups according to the year part of date values.

To cancel grouping, use the DataGridView.ClearGrouping method.

See Also