Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxPivotGridGetDisplayTextEvent Type

The text-related procedural type for data cells.

#Declaration

Delphi
TcxPivotGridGetDisplayTextEvent = procedure(Sender: TcxPivotGridField; ACell: TcxPivotGridDataCellViewInfo; var AText: string) of object;

#Parameters

Name Type Description
Sender TcxPivotGridField

The pivot grid field that raised the event.

ACell TcxPivotGridDataCellViewInfo

The target cell’s ViewInfo information.

AText string

The target cell’s display text.

#Remarks

Use the field’s DisplayFormat property to specify the format pattern for the target cell’s display text.

The following OnGetDisplayText event handler encloses the display text of each data cell in parentheses:

procedure TForm1.cxPivotGrid1Field1GetDisplayText(Sender: TcxPivotGridField;
  ACell: TcxPivotGridDataCellViewInfo; var AText: string);
begin
  AText := '(' + AText + ')';
end;

A pivot grid field’s OnGetDisplayText event references the TcxPivotGridGetDisplayTextEvent type.

See Also