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

TcxPivotGridField.DisplayFormat Property

Specifies the formatting pattern used to display field values.

#Declaration

Delphi
property DisplayFormat: string read; write;

#Property Value

Type
string

#Remarks

Use the DisplayFormat property to specify the format string that will be used to display field values within data cells. If this property is set to an empty string, the formatting pattern is determined automatically depending on the field’s summary variation mode as follows:

  • In percentage and variation percentage modes (corresponds to the svPercentOfColumn, svPercentOfRow, or svPercent value of the SummaryVariation property), the formatting pattern is specified by the cxPivotGridDefaultFieldPercentFormat global constant.

  • Otherwise, the formatting pattern is determined according to the type of field values:

  • For floating-point values, the default formatting pattern is specified by the cxPivotGridDefaultFieldFloatFormat global constant;

  • For ordinal values (such as an integer or Boolean type), the default formatting pattern is specified by the cxPivotGridDefaultFieldIntFormat global constant;

  • For currency values, the formatting pattern is specified by the CurrencyFormat property of an object returned by the cxFormatController global function.

Refer to the TNumericField.DisplayFormat property’s topic in the Delphi (C++ Builder) documentation for more information on formatting values.

See Also