Skip to main content

DashboardItemMouseActionWpfEventArgs.Data Property

Gets the data displayed in the dashboard item.

Namespace: DevExpress.DashboardWpf

Assembly: DevExpress.Dashboard.v24.1.Wpf.dll

NuGet Package: DevExpress.Wpf.Dashboard

Declaration

public MultiDimensionalData Data { get; }

Property Value

Type Description
MultiDimensionalData

A MultiDimensionalData object that is the dashboard item data.

Remarks

The Data property returns all data displayed in the dashboard item.

The following picture and the code snippet below illustrate how to use the MultiDimensionalData API to obtain totals and measure values.

// Grand Total calculated for the first Measure for the entire data table.
e.Data.GetValue(e.GetMeasures()[0]);
// The value at the clicked cell.
e.GetSlice(DashboardDataAxisNames.PivotRowAxis).GetSlice(e.GetAxisPoint(DashboardDataAxisNames.PivotColumnAxis)).GetValue(e.GetMeasures()[0]);
// Row's Total calculated for the first Measure.
e.GetSlice(DashboardDataAxisNames.PivotRowAxis).GetValue(e.GetMeasures()[0]);
// Column's Total calculated for the first Measure.
e.GetSlice(DashboardDataAxisNames.PivotColumnAxis).GetValue(e.GetMeasures()[0]);
See Also