Skip to main content
A newer version of this page is available. .

PivotGridFieldBase.IsDefaultFormat(FormatInfo) Method

Returns whether the specified formatting settings match the default ones.

Namespace: DevExpress.XtraPivotGrid

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

Declaration

public static bool IsDefaultFormat(
    FormatInfo formatInfo
)

Parameters

Name Type Description
formatInfo FormatInfo

A FormatInfo object that represents the formatting settings that should be compared with the default ones.

Returns

Type Description
Boolean

true if the specified formatting settings match the default ones; otherwise, false.

Remarks

The PivotGridControl provides global default formatting settings for date/time, decimal and percent values. These settings are accessed via the static PivotGridFieldBase.DefaultDateFormat, PivotGridFieldBase.DefaultDecimalFormat, and PivotGridFieldBase.DefaultPercentFormat properties, respectively. The total values have specific global formatting settings obtained by the static PivotGridFieldBase.DefaultTotalFormat property. The IsDefaultFormat method returns true if the specified formatting settings match the default ones for one of the value types.

See Also