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

TcxTreeListSummaryItem.OnGetText Event

In This Article

Enables you to provide custom display text for the current summary’s cell value.

#Declaration

Delphi
property OnGetText: TcxTreeListSummaryItemGetTextEvent read; write;

#Remarks

The Sender parameter identifies the summary whose display text is to be determined.

The AValue parameter returns the summary’s value.

Return custom display text for the summary value via the AText parameter. By default, this parameter is assigned the summary’s value, which is formatted according to the Kind and Format properties.

The following code snippet demonstrates how to replace summary values with human readable strings.

Delphi
procedure <Form>.FooterSummaryItems0GetText(
  Sender: TcxTreeListSummaryItem; const AValue: Variant;
  var AText: String);
begin
  if (AValue < 1000) then
    AText := 'Less than 1000'
  else
    AText := 'Equal to or Greater than 1000';
end;
See Also