The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

public event EventHandler<PivotCellDisplayTextEventArgs> CustomCellDisplayText
Public Event CustomCellDisplayText As EventHandler(Of PivotCellDisplayTextEventArgs)

Event Data

The CustomCellDisplayText event handler receives an argument of the DevExpress.XtraReports.UI.PivotGrid.PivotCellDisplayTextEventArgs type.

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.

See Also