Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Collapse]Reporting
 [Expand]Product Information
 [Expand]Getting Started
 [Expand]Fundamental Concepts
 [Expand]Concepts
 [Expand]Design-Time Features
 [Collapse]Examples
  [Expand]Create a Report in Code
  [Expand]Add a Report to an Application
  [Expand]Design a Report
  [Collapse]Provide Data to a Report
   [Expand]Connect a Report to Data
   [Expand]Connect to Data in ASP.NET
   [Expand]Supply Data to a Report
   [Expand]Use Calculated Fields
   [Collapse]Use Report Parameters
     How to: Create a Report with Parameters
     How to: Create a Report with Parameters (Runtime Sample)
     How to: Create a Report with Multi-Value Parameters (Runtime Sample)
     How to: Provide a Report Parameter with Look-Up Values
     How to: Create a Report with Cascading Parameters
     How to: Silently Pass a Parameter's Value
     How to: Pass Parameters of Custom Types
     How to: Provide Custom Editors for Report Parameters (in a WinForms Application)
     How to: Provide Custom Editors for Report Parameters (in a WPF Application)
  [Expand]Shape Data in a Report
  [Expand]Provide Navigation for Large Reports
  [Expand]Add Interactivity to Documents in Print Preview
  [Expand]Use Charts, Grids and Custom Controls
  [Expand]Use Bar Codes
  [Expand]Add Details about a Report
  [Expand]Customize the Report Appearance
  [Expand]Publish Your Reports
  [Expand]Store Your Reports
  [Expand]Create an End-User Reporting Application
  End-User Capabilities
 [Expand]Localization
 [Expand]Redistribution and Deployment
 [Expand]API Reference
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Provide a Report Parameter with Look-Up Values

This topic describes how to assign a list of pre-defined values to a report parameter, to select a value from this list when showing the report's Print Preview.

Depending on whether or not the parameter values are stored in an external data source, you can choose to assign a dynamic or static list of values to a report parameter.

Expanded Assign a Static List of Values to a Parameter

A parameter can be provided with a predefined set of static values, without creating a separate data source. Each value is accompanied by a description that appears in the user interface of the Print Preview.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E4082.

The following code assigns a static list of values to a report parameter.

Expanded Assign a Dynamic List of Values to a Parameter

A parameter can obtain a list of values from a specified data source.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E4081.

The following code assigns a dynamic list of values to a report parameter. These values are supplied to the parameter from the report's data source.

Expanded See Also

How would you rate this topic?​​​​​​​