title: Adding Rows To DataGridView, only one row shows up?
body: <pre><code>foreach (var a in A)
  {
      dataGridMain.Rows.Add();
      dataGridMain.Rows[dataGridMain.Rows.Count - 1].Cells[0].Value = a.Date;
      dataGridMain.Rows[dataGridMain.Rows.Count - 1].Cells[1].Value = a.Value;
  }
  </code></pre>
  
  <p>When I run the loop above, it adds all of the rows but only the last row contains any data.  What am I doing wrong?</p>