locked
drill down report in RDLC report viewer RRS feed

  • Question

  • User2074057892 posted

    Can you please point me to an example of how to implement drill down in RDLC?

    I am in a situation where the first report appears perfectly, but when I click on a drill down  link , i get an error

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

     

     

    Monday, January 31, 2011 5:52 AM

Answers

  • User-1528094326 posted

    You need to make sure you add the data set at the appropriate time(s).

    ReportViewer1.Drillthrough += new DrillthroughEventHandler(MyFunction);
    
    protected void MyFunction(object sender, DrillthroughEventArgs e)
    {
        MyDataCollection data = new MyDataCollection();
    
        LocalReport report = (LocalReport)e.Report;
        report.DataSources.Add(new ReportDataSource("MyData", data.GetData()));
    }


     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 31, 2011 12:44 PM