Measure(String, String) Constructor

Initializes a new instance of the Measure class with the specified identifier and binds it to the specified data member.

Namespace: DevExpress.DashboardCommon

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

Declaration

public Measure(
    string id,
    string dataMember
)
Public Sub New(
    id As String,
    dataMember As String
)

Parameters

Type Name Description
String id

A String that specifies the dimension identifier. This value is assigned to the DataItem.ID property.

String dataMember

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

The Measure identifier passed via the id parameter is used to refer to this dimension in dashboard item filter criteria specified via the DataDashboardItem.FilterString property.

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