Skip to main content
A newer version of this page is available. .

XRPivotGrid.CustomCellDisplayText Event

Enables custom display text to be provided for the cells displayed within the Data Area.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

public event EventHandler<PivotCellDisplayTextEventArgs> CustomCellDisplayText

Event Data

The CustomCellDisplayText event's data class is DevExpress.XtraReports.UI.PivotGrid.PivotCellDisplayTextEventArgs.

Remarks

The CustomCellDisplayText event provides the ability to customize the display text within data cells (the cells which are displayed within the Data Area). A data cell displays a summary value which is calculated against a specific Data Field. This field is identified by the event’s DataField parameter. The current value and its formatted text representation is specified by the event’s Value and DisplayText parameters.

It’s possible to specify the settings used to format data cells via the PivotGridFieldBase.CellFormat, PivotGridFieldBase.TotalCellFormat and PivotGridFieldBase.GrandTotalCellFormat properties of data fields. So, handle the CustomCellDisplayText event if these format properties do not suit your needs.

Use the XRPivotGrid.FieldValueDisplayText event or PivotGridFieldBase.ValueFormat property to customize the display text used to represent field values.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomCellDisplayText event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also