CustomItemSelection.GetDashboardFlatDataSourceRows(DashboardFlatDataSource) Method
Returns the master filter selection as a list of DashboardFlatDataSourceRow objects.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.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);
}
}
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GetDashboardFlatDataSourceRows(DashboardFlatDataSource) 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.