Back to Devexpress

PivotGridFieldBase.GetTotalValueText(Object) Method

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-dot-gettotalvaluetext-x28-system-dot-object-x29.md

latest2.4 KB
Original Source

PivotGridFieldBase.GetTotalValueText(Object) Method

Returns a formatted text representation of the specified value according to the settings used to represent the headers of column or row totals.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.PivotGrid.v25.2.Core.dll

NuGet Packages : DevExpress.PivotGrid.Core, DevExpress.Win.Navigation

Declaration

csharp
public virtual string GetTotalValueText(
    object value
)
vb
Public Overridable Function GetTotalValueText(
    value As Object
) As String

Parameters

NameTypeDescription
valueObject

An object which identifies the value to format.

|

Returns

TypeDescription
String

A string that specifies the formatted text representation of the specified value.

|

Remarks

This method is called internally to format the text displayed within the headers of column and row totals. This method can also be used to get the text representation of values when custom painting field values via the PivotGridControl.CustomDrawFieldValue event.

The GetTotalValueText method formats the specified value according to the settings of the PivotGridFieldBase.TotalValueFormat property.

See Also

TotalValueFormat

PivotGridFieldBase Class

PivotGridFieldBase Members

DevExpress.XtraPivotGrid Namespace