Here is my situation. I have a report viewer on an aspx page, and I'm trying to bind programmatically to a DataTable. I'm doing the binding in the page load event, and I've verified the DataTable contains data. Below is the code that performs the binding:
vw_DailyTotalsTableAdapter adapter = new vw_DailyTotalsTableAdapter();
adapter.Fill(data.vw_DailyTotals);
report.DataSource = data.vw_DailyTotals;
report.DataMember = "vw_DailyTotals";
ReportViewer1.Report = report;
ReportViewer1.DataBind();
When the report tries to render, I get the following error:
"Column 'RowError' does not belong to table vw_DailyTotals."
Any ideas on how to overcome this or even why its happening would be appreciated!
vw_DailyTotalsTableAdapter adapter = new vw_DailyTotalsTableAdapter();
adapter.Fill(data.vw_DailyTotals);
report.DataSource = data.vw_DailyTotals;
report.DataMember = "vw_DailyTotals";
ReportViewer1.Report = report;
ReportViewer1.DataBind();
When the report tries to render, I get the following error:
"Column 'RowError' does not belong to table vw_DailyTotals."
Any ideas on how to overcome this or even why its happening would be appreciated!