Add a Subreport in local report in ReportViewer RRS feed

  • Question

  • User623455698 posted

    I'm trying to follow this walkthrough to add a subreport in ReportViewer:


    I'm working in VS2010 and this walkthrough was written for VS2008. I can get the rows in the parent report to show but the rows in the child report are showing the error "Data retrieval failed for the subreport ...". I think the problem is related to passing the correct parameter into the child report. I tried to run the sample given on the page but I got an error in updating this from VS2008 to VS2010.

    It's possible my problem is in setting the correct names in the following line of code:

    e.DataSources.Add(new ReportDataSource("OrdersDataSet__Orders", "ObjectDataSource2"));

    I have tried every possible option I can think of for the two variables but nothing seems to work.

    I need to get this report running urgently. Hope someone can help.

    Friday, May 25, 2012 4:06 PM


All replies