Skip to main content

SqlDataSourceUIHelper.ManageQueries(SqlDataSource) Method

Invokes the Manage Queries dialog window.

Namespace: DevExpress.DataAccess.UI.Sql

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

NuGet Package: DevExpress.DataAccess.UI

Declaration

public static bool ManageQueries(
    this SqlDataSource sqlDataSource
)

Parameters

Name Type Description
sqlDataSource SqlDataSource

A SqlDataSource object.

Returns

Type Description
Boolean

true, if the OK button is clicked in the dialog window; otherwise, false.

Remarks

The following code snippet invokes the Manage Queries dialog window:

using DevExpress.DataAccess.ConnectionParameters;
using DevExpress.DataAccess.Sql;
using DevExpress.DataAccess.UI.Sql;
// ...
SQLiteConnectionParameters connectionParameters = new SQLiteConnectionParameters("Data/nwind.db", "");
SqlDataSource dataSource = new SqlDataSource(connectionParameters);

SelectQuery query = SelectQueryFluentBuilder
    .AddTable("Products")
    .SelectColumn("ProductName")
    .SelectColumn("UnitPrice")
    .Build("selectQuery");

dataSource.Queries.Add(query);

SqlDataSourceUIHelper.ManageQueries(dataSource);

Manage Queries Dialog Window

Review the following help topic for more information: Query Builder.

See Also