Back to Devexpress

TcxPivotGridGetGroupValueDisplayTextEvent Type

vcl-cxcustompivotgrid-5e216de4.md

latest1.6 KB
Original Source

TcxPivotGridGetGroupValueDisplayTextEvent Type

The text-related procedural type for data groups.

Declaration

delphi
TcxPivotGridGetGroupValueDisplayTextEvent = procedure(Sender: TcxPivotGridField; const AGroupValue: Variant; var AText: string) of object;

Parameters

NameTypeDescription
SenderTcxPivotGridField

The pivot grid field that raised the event.

| | AGroupValue | Variant |

The target grouping value.

| | AText | string |

The target group’s display text.

|

Remarks

The following OnGetGroupValueDisplayText event handler encloses all grouping values in parentheses:

delphi
procedure TForm1.cxPivotGrid1Field1GetGroupValueDisplayText(
  Sender: TcxPivotGridField; const AGroupValue: Variant; var AText: string);
begin
  AText := '(' + AText + ')';
end;
cpp
void TForm1::cxPivotGrid1Field1GetGroupValueDisplayText(
  TcxPivotGridField *Sender, const Variant &AGroupValue, UnicodeString &AText)
{
  AText = "(" + AText + ")";
}

A pivot grid field’s OnGetGroupValueDisplayText event references the TcxPivotGridGetGroupValueDisplayTextEvent type.

See Also

cxCustomPivotGrid Unit