DashboardSqlDataSourceUIHelper.CreateEditQueryContext(DashboardDesigner) Method
Creates EditQueryContext with injected dashboard-related services.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v25.1.Win.dll
NuGet Package: DevExpress.Win.Dashboard
Declaration
Parameters
Name | Type | Description |
---|---|---|
control | DashboardDesigner | The DashboardDesigner instance that supplies the context for editing queries. |
Returns
Type | Description |
---|---|
EditQueryContext | The EditQueryContext configured with services from the provided DashboardDesigner. |
Remarks
The CreateEditQueryContext
static method that allows you to create EditQueryContext with injected dashboard-related services. You can call the SqlDataSourceUIHelper.EditQuery method and pass the context as follows:
var sqlQuery = ds.Queries[sq.Name];
var queryContext = DashboardSqlDataSourceUIHelper.CreateEditQueryContext(designer);
if (SqlDataSourceUIHelper.EditQuery(sqlQuery, queryContext)) {
ds.Fill(designer.Dashboard.Parameters);
}
See Also