SqlDataSourceUIHelper.EditQueryWithQueryBuilder(SqlQuery, QueryBuilderEditQueryContext, QueryBuilderRunnerDelegate) Method

Invokes the Query Builder.

Namespace: DevExpress.DataAccess.UI.Sql

Assembly: DevExpress.DataAccess.v20.1.UI.dll

Declaration

public static bool EditQueryWithQueryBuilder(
    this SqlQuery query,
    QueryBuilderEditQueryContext context,
    QueryBuilderRunnerDelegate createQueryBuilderRunner
)
<ExtensionAttribute>
Public Shared Function EditQueryWithQueryBuilder(
    query As SqlQuery,
    context As QueryBuilderEditQueryContext,
    createQueryBuilderRunner As QueryBuilderRunnerDelegate
) As Boolean

Parameters

Name Type Description
query SqlQuery

A SqlQuery to be edited.

context QueryBuilderEditQueryContext

A QueryBuilderEditQueryContext object.

createQueryBuilderRunner QueryBuilderRunnerDelegate

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.

See Also