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

DataItemNumericFormat.FormatType Property

Gets or sets the format type for numeric values.

Namespace: DevExpress.DashboardCommon

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

Declaration

public DataItemNumericFormatType FormatType { get; set; }

Property Value

Type Description
DataItemNumericFormatType

A DataItemNumericFormatType enumeration member that specifies the format type for numeric values.

Available values:

Name Description
Auto

Format type is defined automatically, according to the data type and summary function (for measures).

General

The most compact of either fixed-point or scientific notation. Ignores the DataItemNumericFormat.Precision value.

Number

Integral and decimal digits, group separators, and a decimal separator with an optional negative sign.

1234.567 -> 1,234.57 (en-US)

Currency

Currency formatting.

123.456 -> $123.46 (en-US)

Scientific

Exponential notation.

1052.0329112756 -> 1.052033E+003 (en-US)

Percent

Number multiplied by 100 and displayed with a percent symbol.

-0.39678 -> -39.7 % (en-US)

Remarks

Use the FormatType property to specify whether to format numeric values using a currency, scientific, percentage, numeric or other pattern.

When displaying currency values, use the DataItemNumericFormat.CurrencyCultureName property to specify the actual currency.

Actual format patterns are defined by the current system locale (or the client’s locale, when a dashboard is shown on the web).

The following code snippets (auto-collected from DevExpress Examples) contain references to the FormatType 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.

See Also