TcxPivotGridField.OnGetGroupValue Event
Occurs when a grouping value for a field value is to be determined.
Declaration
property OnGetGroupValue: TcxPivotGridGetGroupValueEvent read; write;
Remarks
Handle this event to specify a custom grouping value for a particular field value. The field value is identified by the field and the record in an underlying data store which are passed as the Sender and ARecordIndex parameters, respectively. Return a custom grouping value via the AValue parameter whose value is equal by default to the field value.
To specify user-friendly text for a grouping value, handle the OnGetGroupValueDisplayText event.
Note
The OnGetGroupValue event is fired only when the field’s GroupInterval property is set to giCustom.
See Also