Posted on 2012-03-27
I've got a ReportViewer control setup in a MultiView which has 2 Views. The first View has questions for the user with dropdowns. The second View contains the ReportViewer. My goal is to setup the ReportViewer to display report data based on what the user selects in the dropdowns.
When I hard-code the query values into the ReportViewer and set the MultiView to load the 2nd View, it works fine. When I set the MultiView to load View 1, however, by the time I get to the second View, the ReportViewer is not visible.
My best guess is that I need to fire a Reload method, or something like that, for the ReportViewer. I researched this, however, and none of the items I tried seemed to work (e.g. .Refresh(), .Render() etc.)
Environment: C#.NET 4.0, Webforms