Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 02, 2007 01:54 PM by rejoin2me
Member
31 Points
120 Posts
Apr 02, 2007 01:54 PM|LINK
It is possible to add multiple datasources to the reportviewer during runtime as shown below.
ReportDataSource DataSet1_proc_Indi_Repo_Card_Marks_Select = new ReportDataSource("DataSet1_proc_Indi_Repo_Card_Marks_Select", dsIndividualReportCard.Tables[0]); ReportDataSource DataSet3_proc_Scho_Gene_Info_SelectAll = new ReportDataSource("DataSet3_proc_Scho_Gene_Info_SelectAll", dsSchoolInformation.Tables[0]);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(DataSet1_proc_Indi_Repo_Card_Marks_Select); ReportViewer1.LocalReport.DataSources.Add(DataSet3_proc_Scho_Gene_Info_SelectAll);
ReportViewer1.LocalReport.Refresh();
Please help me in this regard.
With Regards
Suresh
rejoin2me
Member
31 Points
120 Posts
Adding multiple datasources duing runtime in the reportviewer
Apr 02, 2007 01:54 PM|LINK
It is possible to add multiple datasources to the reportviewer during runtime as shown below.
ReportDataSource DataSet1_proc_Indi_Repo_Card_Marks_Select = new ReportDataSource("DataSet1_proc_Indi_Repo_Card_Marks_Select", dsIndividualReportCard.Tables[0]);
ReportDataSource DataSet3_proc_Scho_Gene_Info_SelectAll = new ReportDataSource("DataSet3_proc_Scho_Gene_Info_SelectAll", dsSchoolInformation.Tables[0]);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(DataSet1_proc_Indi_Repo_Card_Marks_Select);
ReportViewer1.LocalReport.DataSources.Add(DataSet3_proc_Scho_Gene_Info_SelectAll);
ReportViewer1.LocalReport.Refresh();
Please help me in this regard.
With Regards
Suresh