Back to Devexpress

PivotGridCustomTotalBase.CellFormat Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridcustomtotalbase.md

latest2.5 KB
Original Source

PivotGridCustomTotalBase.CellFormat Property

Provides the settings used to format the custom total’s values.

Namespace : DevExpress.XtraPivotGrid

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

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

Declaration

csharp
public FormatInfo CellFormat { get; }
vb
Public ReadOnly Property CellFormat As FormatInfo

Property Value

TypeDescription
FormatInfo

A FormatInfo object that specifies the formatting settings for the custom total values.

|

Remarks

The default settings used to format custom total values are determined by a data field’s PivotGridFieldBase.TotalCellFormat property. The CellFormat property can be used to override these default settings for particular custom totals.

The settings provided by this property allow you to format values using two approaches. The first is to use the format strings described in the Standard Numeric Format Strings , Custom Numeric Format Strings , Standard Date and Time Format Strings , Custom Date and Time Format Strings and Composite Formatting topics in MSDN. Another approach is to implement a custom formatter object. This enables you to apply formatting of any desired level of complexity.

Refer to Data Formatting to learn more.

See Also

Format

GetCellFormat()

Data Formatting

PivotGridCustomTotalBase Class

PivotGridCustomTotalBase Members

DevExpress.XtraPivotGrid Namespace