Tag

PivotGridFieldBase.UseNativeFormat Property

Gets or sets whether to use the current field's data format when the Pivot Grid Control is exported in XLS/XLSX formats.

Namespace: DevExpress.XtraPivotGrid

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

Declaration

[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean UseNativeFormat { get; set; }
<DefaultValue(DefaultBoolean.Default)>
Public Property UseNativeFormat As DefaultBoolean

Property Value

Type Default Description
DefaultBoolean

Default

A DefaultBoolean value that specifies whether to use the current field's data format when the Pivot Grid Control is exported in XLS/XLSX formats.

Remarks

You can export PivotGridControl's data in XLS and XLSX formats using the PivotGridControl.ExportToXls and PivotGridControl.ExportToXlsx methods, respectively.

The UseNativeFormat option specifies whether values of numeric data fields are exported in XLS/XLSX format as numbers or as text. If the UseNativeFormat property is set to DefaultBoolean.Default, the actual export mode will be determined by the options or textExportMode parameter (depends on which overload is used) of the PivotGridControl.ExportToXls and PivotGridControl.ExportToXlsx method.

See Also