Problem getting report to show data

3 posts, 0 answers
  1. kilhoffer
    kilhoffer avatar
    40 posts
    Member since:
    May 2007

    Posted 27 Aug 2007 Link to this post

    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!
  2. kilhoffer
    kilhoffer avatar
    40 posts
    Member since:
    May 2007

    Posted 28 Aug 2007 Link to this post

    Disregard that last post. I moved the databinding code around and it seems to work now. I still dont know what caused it, but its working now.
  3. DevCraft banner
  4. New2UI
    New2UI avatar
    7 posts
    Member since:
    Apr 2007

    Posted 03 Jan 2008 Link to this post

    Hi there,

    I am getting the same error. I have moved around the Databinding but still get the error. Can you please tell me where you moved the DataBinding...

    Thanks

Back to Top