Our strong recommendation is to provide the report DataSource in the report definition.
You can configure the ObjectDataSource in the report definition by setting its DataSource and DataMember properties - check the ObjectDataSource Component
article. Run time the reporting engine will resolve those properties using reflection to the corresponding types/methods. You can use data source parameters to dynamically filter the data - check the Using Parameters with the ObjectDataSource Component
I suggest to take advantage of our ObjectDataSource Wizard
that will guide you through the process of configuring the data source component.
Note that it may be necessary to register the data providing assemblies in the configuration file of the application (check Configuration
From the code snippets I infer that the report is instantiated and its DataSource is set. Note that the instantiated report may be passed to the reporting engine only wrapped in an InstanceReportSource
. We do not recommend this approach, as it requires a Custom Report Resolver
and additional programming.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items