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.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
String | The number format to apply to the pivot field. |
Remarks
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NumberFormat property.
Note
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.