Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
swapping out data sources at runtime
posted

I have a single XamReportViewer that I am using to bind to multiple different reports at runtime by using binding. These different reports have different numbers and types of data sources. I have tried to swap out the data sources in my code-behind by using the ReportProcessingRequested and ProcessingStarted however if i try to modify the ClientRenderSettings.DataSources during those calls it forces the event into a loop. Is there some other event that I should be using or is there some other method I should be using to swap out the data sources on a XamReportViewer? I can always use a template selector to pick a specific instance of a XamReportViewer template but then I would be forced to define separate templates for each report.

Parents Reply Children
No Data