Skip to main content
.NET Framework 4.5.2+

PivotField.NumberFormat Property

Specifies a number format (in the invariant culture) used to display numeric values (for example, date and time) within the PivotTable field.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v22.2.Core.dll


string NumberFormat { get; set; }

Property Value

Type Description

The number format to apply to the pivot field.


The Spreadsheet allows you to use Microsoft Excel number formats to format numeric values within a row, column, or page field. Use the PivotField.NumberFormatLocal property to specify a number format based on the local culture defined by the DocumentOptions.Culture property. The NumberFormat option allows you to obtain or specify a number format in the invariant culture.

To apply a number format to a data field, use the PivotDataField.NumberFormat or PivotDataField.NumberFormatLocal property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NumberFormat property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also