SqlDataSourceUIHelper.AddQueryWithQueryBuilder(SqlDataSource, QueryBuilderEditQueryContext) Method
Invokes the Query Builder.
Namespace: DevExpress.DataAccess.UI.Sql
Assembly: DevExpress.DataAccess.v24.1.UI.dll
NuGet Package: DevExpress.DataAccess.UI
Declaration
public static bool AddQueryWithQueryBuilder(
this SqlDataSource dataSource,
QueryBuilderEditQueryContext context
)
Parameters
Name | Type | Description |
---|---|---|
dataSource | SqlDataSource | A SqlDataSource to which the resulting query will be added. |
context | QueryBuilderEditQueryContext | A QueryBuilderRunnerDelegate object. |
Returns
Type | Description |
---|---|
Boolean | true, if the Query Builder was closed by clicking the OK button; otherwise, false. |
Remarks
Use the following methods of the SqlDataSourceUIHelper class to invoke the Query Builder in your WinForms application in a standalone mode:
These methods’ parameters include a QueryBuilderEditQueryContext instance and custom QueryBuilderRunner implementation that define various Query Builder options.
See How to use the Query Builder in a WinForms application for a sample code.