Skip to main content
Tag

PivotGridField.GroupInterval Property

Gets or sets how the values of the current column or row field are combined into groups. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll

#Declaration

[XtraSerializableProperty]
[XtraSerializablePropertyId(2)]
public FieldGroupInterval GroupInterval { get; set; }

#Property Value

Type Description
FieldGroupInterval

A FieldGroupInterval value that specifies how the values of the current field are combined into groups.

#Remarks

Values of column and row fields can be combined into groups. By default, the control doesn't group the values of these fields and displays all their unique values along its left and top edge. The GroupInterval property allows you to change the logic used to decide which values should be grouped together.

For instance, for a field which displays date/time values, you can set its GroupInterval property to FieldGroupInterval.DateYear. As a result, the field's values will be grouped within a few categories, each of which will combine different values that belong to the same year.

See the FieldGroupInterval topic, for details on the available group modes.

If group modes available via the GroupInterval property doesn't suit your needs, you can implement custom grouping intervals via the PivotGridControl.CustomGroupInterval event.

See Also