DataDashboardItem.DataMember Property

Gets or sets a specific data member in a dashboard data source to which the dashboard item is bound.

Namespace: DevExpress.DashboardCommon

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

Syntax

public string DataMember { get; set; }

Returns

Type Description
String

A String value that specifies a data member in a dashboard data source.

Use the DataDashboardItem.DataSource property to specify the data source to which the current dashboard item is bound. To access the collection of existing dashboard data sources, use the Dashboard.DataSources property.

Note that the DataMember property is in effect for DashboardSqlDataSource and DashboardEFDataSource only. For SQL data sources, the data member is a query used to select a specific subset of data. Use the SqlDataSource.Queries property to obtain the available data source queries. Then, assign the name of the required query (SqlQuery.Name) to the DataMember property to bind the dashboard item to this query.