Skip to main content

PivotGridSettings.FieldValueDisplayText Property

Enables the display text of individual column and row headers and filter dropdown items to be customized.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public PivotFieldDisplayTextEventHandler FieldValueDisplayText { get; set; }

Property Value

Type Description
PivotFieldDisplayTextEventHandler

A PivotFieldDisplayTextEventHandler delegate method allowing you to implement custom processing.

Remarks

Handle the FieldValueDisplayText event to do the following:

If the FieldValueDisplayText event is raised for a field value or total header, the Field parameter identifies the corresponding column field or row field. If this event is raised for a data field header, the Field parameter identifies the corresponding data field.

If the FieldValueDisplayText event is raised for a grand total header, the Field property returns null. To get the type of the processed header, use the PivotFieldValueEventArgsBase<T>.ValueType property.

If the FieldValueDisplayText event is fired for an item within a Filter Window, the Field parameter returns the column, row or filter field whose dropdown has been invoked.

To supply custom display text for a header or filter window’s item, assign the custom string to the PivotFieldDisplayTextEventArgs.DisplayText property.

See Also