Skip to main content
A newer version of this page is available. .

SqlWizardSettings.QueryBuilderLight Property

Specifies whether or not the Query Builder invoked from the Data Source Wizard provides table and column names’ customization.

Namespace: DevExpress.DataAccess.UI.Wizard

Assembly: DevExpress.DataAccess.v18.2.dll

Declaration

[DefaultValue(false)]
public bool QueryBuilderLight { get; set; }

Property Value

Type Default Description
Boolean **false**

true, to enable table and column names’ customization; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to QueryBuilderLight
Cross-Platform Class Library DataSourceWizardSettings
.SqlWizardSettings.QueryBuilderLight
WinForms Controls DataSourceWizardOptions
.SqlWizardSettings.QueryBuilderLight
Reporting XRDesignMdiController
.SqlWizardSettings.QueryBuilderLight
Dashboard DashboardDesigner
.DataSourceWizardSettings.QueryBuilderLight
DashboardDesignerDataSourceWizardSettings
.SqlWizardSettings.QueryBuilderLight

Remarks

The lightweight Query Builder allows you to specify user-friendly names for tables and columns instead of actual data member names. The IDisplayNameProvider interface provides this functionality. The Light Query Builder does not display the resulting SQL query and disables column expressions because these options use actual data member names. The lightweight version is available for WinForms and WPF.

Query Builder Light Mode for WinForms

Set the QueryBuilderLight property to true to enable the Query Builder Light mode (for instance, in the Form’s Load event handler).


private void Form1_Load(object sender, EventArgs e) {
    //...
    reportDesigner1.DataSourceWizardSettings.SqlWizardSettings.QueryBuilderLight = true;
    //...
}

The following image illustrates the lightweight Query Builder version for Winforms.

query-builder-light

Query Builder Light Mode for WPF

Set the QueryBuilderLight property to true to enable the Query Builder Light mode (for instance, in the Window’s Loaded event handler).


private void Window_Loaded(object sender, RoutedEventArgs e) {
    //...
    reportDesigner.DataSourceWizardSettings.SqlWizardSettings.QueryBuilderLight = true;
    //...
}

Alternatively, you can use the following XAML code to enable the lightweight Query Builder version.


<Window ...
        xmlns:dxrud="http://schemas.devexpress.com/winfx/2008/xaml/reports/userdesigner"
        xmlns:dxda="http://schemas.devexpress.com/winfx/2008/xaml/dataaccess">

    <dxrud:ReportDesigner x:Name="reportDesigner">
        <dxrud:ReportDesigner.DataSourceWizardSettings>
            <dxda:DataSourceWizardSettings SqlWizardSettings="{dxda:SqlWizardSettings QueryBuilderLight=True}" />
        </dxrud:ReportDesigner.DataSourceWizardSettings>
    </dxrud:ReportDesigner>
</Window>

This image illustrates the Light Query Builder for WPF.

wpf-designer-query-builder-light-mode

See Also