[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Collapse]Dashboard
 [Collapse]Getting Started
  [Expand]Build Web Dashboard Applications
  [Collapse]Build WinForms Dashboard Applications
    Create a WinForms Designer Application using the Template Gallery
    Create a WinForms Viewer Application using the Template Gallery
    Create a WinForms Designer
    Create a Dashboard using the WinForms Designer
    Create a WinForms Viewer for Displaying a Dashboard
  [Expand]Build WPF Dashboard Applications
   Included Components
 [Expand]Basic Concepts and Terminology
 [Expand]Main Features
 [Expand]Building the Designer and Viewer Applications
 [Expand]Creating Dashboards
 [Expand]Examples
 [Expand]Design-Time Features
  Video Tutorials
  End-User Documentation
  Localization
 [Expand]Redistribution and Deployment
 [Expand]Member Tables
 [Expand]API Reference
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Create a WinForms Viewer for Displaying a Dashboard

This topic describes how to build a simple dashboard viewer application and use it to display the Dashboard created in the Create a Dashboard using the WinForms Designer document.

Follow the steps below.

  1. Run Visual Studio 2012, 2013, 2015 or 2017 and create a new Windows Forms Application.
  2. Drag the DashboardViewer control from the DX.18.2: Data & Analytics Toolbox tab and drop it onto the main form.

  3. Click the control's smart tag button and select Dock in Parent Container to allow the DashboardViewer to fill the entire window.

  4. In the same menu, click Load Dashboard, use the invoked dialog to locate the dashboard XML file created in the first lesson, and choose this file as the DashboardSource.

    Important

    The dashboard XML file created in the first lesson uses an Access 97 database. If you have Windows x64, make sure that the WinForms Dashboard Designer application is built with its Platform target set to x86.

    As an alternative, you can select a dashboard created at design time.

  5. Run the application to see the result.

Is this topic helpful?​​​​​​​