DashboardViewer.ShowDataInspectorAsync(String, InspectedType) Method
In This Article
Invokes the Data Inspector dialog with a defined data type for the specified dashboard item asynchronously.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v24.2.Win.dll
NuGet Package: DevExpress.Win.Dashboard
#Declaration
public Task ShowDataInspectorAsync(
string dashboardItemName,
InspectedType inspectedType
)
#Parameters
Name | Type | Description |
---|---|---|
dashboard |
String | A String object that specifies a component name of the dashboard item for which the Data Inspector displays data. |
inspected |
Inspected |
A Inspected |
#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");
}
}
}
See Also