Back to Devexpress

PivotGridFieldBase.UseNativeFormat Property

corelibraries-devexpress-dot-xtrapivotgrid-dot-pivotgridfieldbase-d8500db0.md

latest3.0 KB
Original Source

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.v25.2.Core.dll

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

Declaration

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

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

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

ExportToXls

ExportToXlsx

PivotGridFieldBase Class

PivotGridFieldBase Members

DevExpress.XtraPivotGrid Namespace