我已經填充了數據表。我想在報告中顯示它。我在做這樣的:將數據表綁定到reportviewer表時出錯
ReportDataSource source = new ReportDataSource("dtss", dt);
ReportViewer1.LocalReport.DataSources.Clear();
ReportViewer1.LocalReport.DataSources.Add(source);
ReportViewer1.DataBind();
ReportViewer1.LocalReport.Refresh();
但是,當我嘗試建立,我得到錯誤:
The dataset ‘DataSet1’ refers to the data source 「」, which does not exist.
我缺少什麼?使用Webforms(ASP.net)
沒有結果,也許別的東西丟失了?我在報告中創建了表格。 Assiged DataSetName to dtss。仍然有相同的錯誤。也許我應該在其他地方綁定數據源? – seeker 2012-07-27 17:48:25