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.v21.2.Core.dll

Declaration

[DefaultValue(null)]
public string DataMember { get; set; }

Property Value

Type Default Description
String

null

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

Remarks

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.

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