Search code examples
asp.netrdlcreportviewer2008

RDLC Report Viewer Drill Through Report


I had posted this question on MSDN Forum

http://social.msdn.microsoft.com/Forums/en/vsreportcontrols/thread/f00e3406-354d-4f54-acce-7b7f0ad4c90f

But I am not getting any response. Can you please help me. I am really stuck with this rather simple task.

My code seems to be correct but still I get the

A data source instance has not been supplied for the data source 'DataSet1_Order_Details'.

Sorry for the cross post...


Solution

  • I solved the error.

    I was adding the data source like

    this.ReportViewer.Localreport.DataSource.Add
    (new RemoteDataSource("DataSet1_Order_Details", ObjectDataSource2.ID));
    

    instead the data source should be added in the following manner

    DataSet1TableAdapter.OrderDetails od = new DataSet1TableAdapter.OrderDetails();
    ((LocalReport)e.report).Datasources.Add(new RemoteDataSource("DataSet1_Order_Details", od.get(orderid))
    

    this resolved the issue and now I am able to have drill down in the ReortViewer report.

    Regards, Abhishek