All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DashboardViewer.ShowDataInspectorAsync(String) Method

Invokes the Data Inspector dialog for the specified dashboard item.

Namespace: DevExpress.DashboardWin

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

Declaration

public Task ShowDataInspectorAsync(
    string dashboardItemName
)
Public Function ShowDataInspectorAsync(
    dashboardItemName As String
) As Task

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.

Examples

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