title: MS Chart series even if I assign integer vallues to xaxis values, X values always zero
body: <p>I am working on a simple Windows Forms and I am using MS chart to plot line chart.Below is the code I am using to plot the chart.</p>
  
  <pre><code>void Form1_Load(object sender, EventArgs e)
  {
      int i;
      DataTable dt = new DataTable();
      DataRow dr;
  
      dt.Columns.Add(new DataColumn("X"));
      dt.Columns.Add(new DataColumn("Y"));
  
      for (i = 1; i &lt; 100; ++i)
      {
          dr = dt.NewRow();
          dr["X"] = i*2;
          dr["Y"] = i * i;
          dt.Rows.Add(dr);
      }
  
      chart1.Series[0].XValueMember = "X";
      chart1.Series[0].YValueMembers = "Y";
      chart1.DataSource = dt;
      chart1.DataBind();
  
       DataPointCollection dpc = chart1.Series[0].Points;      
  
  }       
  </code></pre>
  
  <p>This works as expected and the graph displays with the correct X an Y values. However, if I later try look up values in the series (to get the Y value associated with an X position on the chart), I discover that all the DataPoints in the series Points collection have X=0 (the Y values are OK).</p>
  
  <p>I am assigning inter value only to X values not string but still getting 0 only for x values</p>
  
  <p>This very strange since the data is actually plotted with the correct X axis values. Any ideas as to what is happening here?</p>