Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SqlDataSourceUIHelper.EditQueryWithQueryBuilder(SqlQuery, QueryBuilderEditQueryContext) Method

Invokes the Query Builder.

Namespace: DevExpress.DataAccess.UI.Sql

Assembly: DevExpress.DataAccess.v24.2.UI.dll

NuGet Package: DevExpress.DataAccess.UI

#Declaration

public static bool EditQueryWithQueryBuilder(
    this SqlQuery query,
    QueryBuilderEditQueryContext context
)

#Parameters

Name Type Description
query SqlQuery

A SqlQuery to be edited.

context QueryBuilderEditQueryContext

A QueryBuilderEditQueryContext 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