title: asp.net chart. Column not found error
body: <p>I am trying to display asp.net chart.
  i have written following code</p>
  
  <pre><code>public SqlDataAdapter da;
  DataSet ds1;
  public DataSet SelectDayWiseEnquiriesForCChart()
  {
      int orgid;
      orgid = ((int)Session["orgid"]);
      DbConnect objdbc = new DbConnect();
      SqlConnection con = objdbc.openConnection();
      da = new SqlDataAdapter("SELECT EnquiryOwner,Count(uid) from EnquiryMaster WHERE orgid='" + orgid + "' and ( DAY(date) = DAY(GETDATE()) AND MONTH(date) = MONTH(GETDATE()) AND YEAR(date) = YEAR(GETDATE()) ) group by EnquiryOwner", con);
      ds1 = new DataSet();
      da.Fill(ds1);
      return ds1;
  }
  
  protected void FillChartControl()
  {
      Chart1.DataSource = SelectDayWiseEnquiriesForCChart();
  
      Chart1.DataBind();
  }
         &lt;asp:Chart ID="Chart1" runat="server"&gt;
              &lt;series&gt;
                  &lt;asp:Series Name="Series1" XValueMember="EnquiryOwner" YValueMembers="uid"&gt;
                  &lt;/asp:Series&gt;
              &lt;/series&gt;
              &lt;chartareas&gt;
                  &lt;asp:ChartArea Name="ChartArea1"&gt;
                  &lt;/asp:ChartArea&gt;
              &lt;/chartareas&gt;
          &lt;/asp:Chart&gt;
  </code></pre>
  
  <p>I am getting an error column with name uid not found
  i am not able to understand why am i getting this error.</p>