PivotGridControl.CustomGroupInterval Event
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
#Event Data
The CustomGroupInterval event's handler receives an argument of the PivotCustomGroupIntervalEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
Field | Gets the field being processed. |
Group |
Gets or sets a group value. |
Thread |
Gets the field being processed. Provides read-only access to field settings. |
Value | Gets the processed field value. |
#Remarks
Values of column and row fields can be grouped into bigger ranges. You can select one of the predefined group modes available via the PivotGridField.GroupInterval property. If none of these group modes match your requirements, you can implement custom grouping.
To custom group a field's values, set the PivotGridField.GroupInterval property to Custom and handle the CustomGroupInterval event to implement custom grouping logic. The event fires for each value of a field. While handling the event, use the PivotCustomGroupIntervalEventArgs.GroupValue parameter to specify the group that will own the currently processed value. For values to be displayed in a single group, provide the same value for the GroupValue parameter.
Objects assigned to the GroupValue property must be of the same type for all values of a particular field.
NOTE
Custom grouping is not supported in OLAP mode.