GridColumn.GroupInterval Property

Gets or sets how data rows are grouped when grouping by this column is applied. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

[DefaultValue(ColumnGroupInterval.Default)]
public ColumnGroupInterval GroupInterval { get; set; }
<DefaultValue(ColumnGroupInterval.Default)>
Public Property GroupInterval As ColumnGroupInterval

Property Value

Type Default Description
ColumnGroupInterval

Default

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

Remarks

The Interval Grouping feature allows you to change the default logic, especially for columns that contain date/time values. For example, data rows can be arranged by the month or year part of a date/time value, while text columns can be grouped by the first characters. To specify the required grouping mode, use the column's GroupInterval property.

IntervalGrouping

TIP

Demo: Interval Grouping

Requires a WPF Subscription. Download

<dxg:GridControl Name="grid">
    <dxg:GridControl.Columns>
        <dxg:GridColumn FieldName="Country" GroupIndex="0" GroupInterval="Alphabetical"/>
        <dxg:GridColumn FieldName="City"/>
        <!-- -->
    </dxg:GridControl.Columns>
    <dxg:GridControl.View>
        <dxg:TableView/>
    </dxg:GridControl.View>
</dxg:GridControl> 
See Also