Back to Devexpress

DashboardDesigner.Dashboard Property

dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-9fadeac9.md

latest6.2 KB
Original Source

DashboardDesigner.Dashboard Property

Gets or sets the currently opened dashboard.

Namespace : DevExpress.DashboardWin

Assembly : DevExpress.Dashboard.v25.2.Win.dll

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
[Browsable(false)]
public Dashboard Dashboard { get; set; }
vb
<Browsable(False)>
Public Property Dashboard As Dashboard

Property Value

TypeDescription
Dashboard

A Dashboard object that is the currently opened dashboard.

|

Remarks

You can open a dashboard in one of the following ways.

Note

You cannot use the same instance of the dashboard object in the DashboardDesigner and DashboardViewer controls at the same time. You can use the SaveToXml / LoadFromXml methods to create a copy of the dashboard object.

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

winforms-dashboard-grid-hyperlink-column/CS/Dashboard_GridHyperlinkColumn/Form1.cs#L34

csharp
dashboard.Items.Add(grid);
    dashboardDesigner1.Dashboard = dashboard;
}

winforms-dashboard-sql-data-source/CS/Dashboard_DashboardDataProviders/Form1.cs#L17

csharp
sqlDataSource.Fill();
    dashboardDesigner1.Dashboard = CreateDashboard(sqlDataSource);
}

winforms-dashboard-customize-color-scheme/CS/Dashboard_Coloring/Form1.cs#L29

csharp
}
    dashboardDesigner1.Dashboard = dashboard;
}

winforms-dashboard-designer-merge-dashboards-to-tabs/CS/DesignerForm.cs#L38

csharp
// The DashboardMerger instance is the key object that performs the merge.
DashboardMerger dashboardMerger = new DashboardMerger(dashboardDesigner.Dashboard);
if(!dashboardMerger.MergeDashboard(dashboard)) {

winforms-dashboard-filtering-in-olap-mode/CS/Dashboard_OlapFiltering/Form1.cs#L39

csharp
pivot1.FilterString = filterCriteria.ToString();
    dashboardDesigner1.Dashboard = dashboard;
}

winforms-dashboard-grid-hyperlink-column/VB/Dashboard_GridHyperlinkColumn/Form1.vb#L29

vb
dashboard.Items.Add(grid)
    dashboardDesigner1.Dashboard = dashboard
End Sub

winforms-dashboard-sql-data-source/VB/Dashboard_DashboardDataProviders/Form1.vb#L17

vb
sqlDataSource.Fill()
    dashboardDesigner1.Dashboard = CreateDashboard(sqlDataSource)
End Sub

winforms-dashboard-customize-color-scheme/VB/Dashboard_Coloring/Form1.vb#L32

vb
Next row
    dashboardDesigner1.Dashboard = dashboard
End Sub

winforms-dashboard-designer-merge-dashboards-to-tabs/VB/DesignerForm.vb#L39

vb
' The DashboardMerger instance is the key object that performs the merge.
Dim dashboardMerger As New DashboardMerger(dashboardDesigner.Dashboard)
If Not dashboardMerger.MergeDashboard(dashboard) Then

winforms-dashboard-filtering-in-olap-mode/VB/Dashboard_OlapFiltering/Form1.vb#L36

vb
pivot1.FilterString = filterCriteria.ToString()
    dashboardDesigner1.Dashboard = dashboard
End Sub

Implements

Dashboard

See Also

LoadDashboard

DashboardDesigner Class

DashboardDesigner Members

DevExpress.DashboardWin Namespace