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

Dimension(String, DateTimeGroupInterval) Constructor

Initializes a new instance of the Dimension class, binds it to the specified data member and sets the group interval for date-time values to the specified value.

Namespace: DevExpress.DashboardCommon

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

NuGet Packages: DevExpress.Dashboard.Core, DevExpress.WindowsDesktop.Dashboard.Core

Declaration

public Dimension(
    string dataMember,
    DateTimeGroupInterval dateTimeGroupInterval
)

Parameters

Name Type Description
dataMember String

A String that identifies the data item to which this Dimension should be bound. This value is assigned to the DataItem.DataMember property.

dateTimeGroupInterval DateTimeGroupInterval

A DateTimeGroupInterval enumeration member that specifies the group interval for date-time values. This value is assigned to the Dimension.DateTimeGroupInterval property.

Remarks

The data member identifier passed via the dataMember parameter should consist of the data table name and the column name, dot separated. For instance, the Street Address column from the Customers table is identified as “Customers.Street Address”.

If a data source has been specified in code, particular data fields can be custom objects. In this instance, the identifier is a chain of property names, like “Customers.City.Population”.

Note that aliases specified in the Query Builder are not used in data member identifiers. Use actual column names instead.

See Also