Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ObjectDataSource - How to provide a custom parameter editor.

$
0
0

This example illustrates how to provide an End-User Report Designer with a custom editor for editing a value of a parameter passed to a member of an ObjectDataSource. To achieve this functionality, substitute the report designer's repository items provider service with a custom one.

 In this example, a custom repository items provider extends the DevExpress.DataAccess.UI.Wizard.Services.DefaultRepositoryItemsProvider class and overrides its GetRepositoryItem method to dispatch a custom editor for a parameter of a custom Person type.

 To view the result, run the application. Next, in the End-User Report Designer's Report Explorer select objectDataSource1 and click the ellipse button for its Parameters property in the Property Grid. In the invoked Configure Parameters dialog, you will see the Customer parameter of the type Person. To view the custom lookup edit control used to edit this parameter, click the parameter's Value property.


Viewing all articles
Browse latest Browse all 7205

Trending Articles