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

PivotGridField.GrandTotalText Property

Gets or sets the text displayed within the Grand Total‘s header that corresponds to the current field. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.PivotGrid, DevExpress.Wpf.PivotGrid

Declaration

public string GrandTotalText { get; set; }

Property Value

Type Description
String

A string that represents the text displayed within the Grand Total‘s header that corresponds to the current field.

Remarks

This property allows the default text displayed within the Grand Total‘s header that corresponds to the current field to be overridden. This text is displayed when the current field is displayed within the Data Area and only when either of the following conditions is met:

  • there is no visible field in the Column Header Area. In this case, the DXPivotGrid control displays a single column which contains grand total values. The GrandTotalText property allows you to customize the text within this column header.
  • there is no visible field in the Row Header Area. In this case, the DXPivotGrid control displays a single row which contains grand total values. The GrandTotalText property allows you to customize the text within this row header.

When the GrandTotalText property is set to an empty string the default text for the Grand Total’s header is constructed in the form: “FieldCaption Total”. Here “FieldCaption” is the actual text displayed within the Field Header, which can be customized via the PivotGridField.Caption property. The default “Total” substring can be localized. See the Localizing WPF Controls via Localizer Objects document for more information.

See Also