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

DashboardViewer.ShowDataInspectorAsync(String) Method

Invokes the Data Inspector dialog for the specified dashboard item asynchronously.

Namespace: DevExpress.DashboardWin

Assembly: DevExpress.Dashboard.v20.1.Win.dll

NuGet Packages: DevExpress.Win.Dashboard, DevExpress.WindowsDesktop.Win.Dashboard

Declaration

public Task ShowDataInspectorAsync(
    string dashboardItemName
)

Parameters

Name Type Description
dashboardItemName String

A String object that specifies a component name of the dashboard item for which the Data Inspector displays data.

Returns

Type Description
Task

The task object that is the asynchronous operation to perform.

Example

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.

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");
        }
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowDataInspectorAsync(String) 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.

See Also