Expand and Collapse Groups in ReportViewer in Asp.Net WebForm
Posted on 2014-12-30
I have created a report with Report Builder 3.0 running on SQL Server 2014 in native mode. The report has grouping by a single field. When the report is launched from the SSRS site, the grouping with +/- symbols work perfectly. When called from a ReportViewer control embedded in an Asp.Net page, this functionality appears not to be available. When a plus image is clicked, the page seems to re-post and display in the same state as before the click. I am checking for PostBack in the pageload code.
protected void Page_Load(object sender, EventArgs e)
//Specify the report server
//Specify the report name
ReportPath = Session["reportPath"].ToString();
//Specify the server credentials
* With the report specified, hydrate the report
* parameters based on the values in the
* reportParameters hash.
if(Session["reportParameters"] != null)
var reportParameters = (Dictionary<string, string>)Session["reportParameters"];
foreach (var item in reportParameters)
new ReportParameter(item.Key, item.Value)