dashboard-devexpress-dot-dashboardwin-dot-dashboardviewer-dot-getitemdata-x28-system-dot-string-x29.md
Returns the client data for the specified dashboard item.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
public MultiDimensionalData GetItemData(
string dashboardItemName
)
Public Function GetItemData(
dashboardItemName As String
) As MultiDimensionalData
| Name | Type | Description |
|---|---|---|
| dashboardItemName | String |
A String that specifies the component name of the dashboard item.
|
| Type | Description |
|---|---|
| MultiDimensionalData |
A MultiDimensionalData object that represents multidimensional data visualized in the dashboard item.
|
The GetItemData method also allows you to obtain hidden measures used in the specified dashboard item.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetItemData(String) method.
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.
how-to-display-the-total-value-above-each-pie-chart/CS/TotalsInChartsExample/Form1.cs#L22
var data = viewer.GetItemData(e.DashboardItemName);
var measure = data.GetMeasures()[0];
how-to-display-the-total-value-above-each-pie-chart/VB/TotalsInChartsExample/Form1.vb#L22
Dim data = viewer.GetItemData(e.DashboardItemName)
Dim measure = data.GetMeasures()(0)
See Also