Skip to main content

How to: Provide Custom Editors for Report Parameters

This example demonstrates how you can provide your own custom editors that are shown in the Parameters UI of a report's Print Preview.

To do this, in the ReportServicePreviewModel.CustomizeParameterEditors event handler override the existing editor, and, for its CustomizeParameterEditorsEventArgs.BoundDataMember property, specify the data member that is associated with the parameter.

If required, you can also define CustomizeParameterEditorsEventArgs.BoundDataConverter (a converter, which implements the IValueConverter interface) and CustomizeParameterEditorsEventArgs.BoundDataConverterParameter (a parameter that can be used in the converter's methods).

The result is shown in the following image.

custom-parameter-editors