Skip to main content
A newer version of this page is available. .

How to Invoke the Data Inspector Asynchronously When the Dashboard is Loaded

This example demonstrates how to call asynchronous methods that retrieves data when the dashboard is loaded.

The Dashboard Viewer loads a dashboard and asynchronously invokes the Data Inspector window.

Note

The complete sample project How to Invoke the Data inspector Asynchronously When the Dashboard is Loaded is available in the DevExpress Examples repository.

using System;
using System.Windows.Forms;

namespace DataInspectorOnInitializeExample
{
    public partial class Form1 : Form {
        public Form1() {
            InitializeComponent();
            dashboardViewer1.Initialized += dashboardViewer1_Initialized;
        }
        async void dashboardViewer1_Initialized(object sender, EventArgs e) {
            await dashboardViewer1.ShowDataInspectorAsync("gridDashboardItem1");
        }
    }
}