none
Bind rdl local mode in code - rdl has mulitple datasets RRS feed

  • Question

  • Does anyone know how to bind an rdl using local mode that has multiple datasets?

     

    I know how to do it if it only has one dataset and the datasource has the same name.

    var reportDataSource = new ReportDataSource("dsSchedulerDaily", data);
                rptSchedulerDaily.LocalReport.DataSources.Add(reportDataSource);

     

     


    Tuesday, May 10, 2011 3:49 PM

All replies

  • You just do it repeately with the rest of the data sources. Just make sure that the first parameter of the ReportDataSource object matches the dataset name in the RDLC file.
    Cephas Lin This posting is provided "AS IS" with no warranties.
    Tuesday, May 10, 2011 5:46 PM
    Moderator
  • Awesome.  I figured it would be something easy that I was missing.

     

    Thanks

    Tuesday, May 10, 2011 6:11 PM