Skip to main content

GridColumn.GroupInterval Property

Gets or sets how data rows are combined into groups.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll

NuGet Package: DevExpress.XamarinForms.Grid

Declaration

[XtraSerializableProperty]
public ColumnGroupInterval GroupInterval { get; set; }

Property Value

Type Description
ColumnGroupInterval

A ColumnGroupInterval enumeration value that specifies how data rows are grouped.

Available values:

Name
Default
Value
Date
DateMonth
DateQuarter
DateYear
DateRange
Alphabetical
DisplayText

Remarks

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. Use the GroupInterval property to change the logic used to decide which rows should be grouped together. For instance, for a column that displays date/time information, you can set its GroupInterval property to ColumnGroupInterval.DateRange. In this case, when grouping is applied against this column, the data rows will be combined into groups according to their date value compared with the current system date (“Today”, “Yesterday”, etc.).

To group data in the grid by a column, use the IsGrouped property or DataGridView.GroupBy method. To cancel grouping, use the DataGridView.ClearGrouping method.

See Also