This example demonstrates how to enable an end-user to assign multiple values to a report parameter in a Print Preview.
To do this, create an instance of the Parameter class and provide it with a set of lookup values. In this example, the parameter values are assigned in code. To learn how to obtain these values from a data source, see How to assign multiple values to a report parameter from a connected data source.
Set the parameter's MultiValue property to true, which allows the parameter to have more than one value. After that, the parameter's values can be used in the report's FilterString.
When previewing the resulting report, an end-user will be prompted to specify values for the parameter using the drop-down multi-select list.
↧
How to assign multiple values to a report parameter
↧