//加载确认表
DataTable qrball = common.getDataTable(Application.StartupPath, "qrb");
qrball.PrimaryKey = new DataColumn[] { qrball.Columns["id"] };
Microsoft.Reporting.WinForms.ReportDataSource rds = new Microsoft.Reporting.WinForms.ReportDataSource("qrbDS", qrball);
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(rds);
MessageBox.Show(qrball.Rows.Count.ToString());
this.reportViewer1.RefreshReport();
在reportview中手动加载Datatable,如代码,数据有10行,显示时,应该每行显示一页,共显示10页才对,运行结果,却只显示1页
运行时messagebox语句的提示10,表示数据表中有10行数据
可是reportview顶部导航工具条只显示1页,什么原因呢?