CustomItemSelection.GetDashboardFlatDataSourceRows(DashboardFlatDataSource) Method
Returns the master filter selection as a list of DashboardFlatDataSourceRow objects.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v26.1.Core.dll
NuGet Package: DevExpress.Dashboard.Core
Declaration
public IList<DashboardFlatDataSourceRow> GetDashboardFlatDataSourceRows(
DashboardFlatDataSource flatDataSource
)
Parameters
| Name | Type | Description |
|---|---|---|
| flatDataSource | DashboardFlatDataSource | A DashboardFlatDataSource object that contains custom item data in a tabular format. |
Returns
| Type | Description |
|---|---|
| IList<DashboardFlatDataSourceRow> | A list of |
Remarks
The following code snippet updates a custom control according to the current master filter selection:
using DevExpress.DashboardCommon;
using DevExpress.DashboardWin;
using DevExpress.XtraCharts;
namespace TutorialsCustomItems {
public class FunnelItemControlProvider : CustomControlProviderBase {
DashboardFlatDataSource flatData;
ChartControl chart;
// ...
protected override void SetSelection(CustomItemSelection selection){
chart.ClearSelection();
foreach (DashboardFlatDataSourceRow item in selection.GetDashboardFlatDataSourceRows(flatData))
chart.SelectedItems.Add(item);
}
}
}
See Also