[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
 [Expand]Product Information
 [Expand]Get Started with DevExpress Reporting
 [Expand]Create Popular Reports
 [Expand]Detailed Guide to DevExpress Reporting
 [Collapse]Visual Studio Report Designer
  [Expand]Dock Panels and Designer Options
  [Expand]Report Wizard
  [Collapse]Data Source Wizard
   [Collapse]Connect to a Database
     Select a Data Connection
     Specify a Connection String
     Save the Connection String
     Create a Query or Select a Stored Procedure
     Create a Query or Select a Stored Procedure (Obsolete)
     Configure Query Parameters
   [Expand]Connect to an Entity Framework Data Source
   [Expand]Connect to an Object Data Source
   [Expand]Connect to an Excel Data Source
   [Expand]Connect to a JSON Data Source
   [Expand]Connect to an XPO Data Source
   [Expand]Connect to a Federated Data Source
    No Data
   Query Builder
 [Expand]Create End-User Reporting Applications
 [Expand]API Reference
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Configure Query Parameters

On this wizard page, you can manage parameters that are used in queries and/or stored procedures selected on the previous wizard page, as well as specify parameter values.

Expanded Specify Parameter Values

A parameter value can specified in one of the following ways.

  • Parameters can be assigned static values (according to the specified parameter type), which is illustrated in the following image.

  • Alternatively, you can link a query or stored procedure parameter to a report parameter, whose value can be requested each time before the report document is to be previewed or exported. To do this, enable the Expression check box and select an existing report parameter of the corresponding type or create a new one.

  • Another option is to calculate a parameter value based on an expression. To do this, enable the Expression check box and run the Expression Editor.

Expanded Manage Parameters

To delete a specific parameter, select it on this wizard page and click Remove.

To execute a specific query with the specified parameter values, click Preview and select a query.

When previewing a query or stored procedure result, only 1000 first data rows are displayed. If a query contains a custom SQL, the entire result set is obtained.

To create a new query parameter, click Add and select a query.

Is this topic helpful?​​​​​​​