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

CalculatedField.DataType Property

Gets or sets the type of the value returned by the calculated field.

Namespace: DevExpress.DashboardCommon

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

Declaration

[DefaultValue(CalculatedFieldType.Auto)]
[Browsable(false)]
public CalculatedFieldType DataType { get; set; }

Property Value

Type Default Description
CalculatedFieldType **Auto**

A CalculatedFieldType enumeration member specifying the type of the value returned by the calculated field.

Available values:

Name Description
String

The field returns a String value (the String type).

Integer

The field returns an Integer value (the Int32 type).

Decimal

The field returns a Decimal value (the Decimal type).

Boolean

The field returns a Boolean value (the Boolean type).

DateTime

The field returns a date-time value (the DateTime type).

Object

The field returns a value of any type.

Auto

A field type is detected automatically based on the type of values returned by CalculatedField.Expression.

Double

The field returns a Double value (the Double type).

Remarks

The DataType property specifies the type of value (Boolean, DateTime, String, etc.) returned by a calculated field after evaluating its expression, specified via the CalculatedField.Expression property.

Use the CalculatedField.Name property to specify the calculated field’s name.

See Also