title: adding new row to the bottom of datagridview
body: <p>I have datagridview with one column and one record on my form and I want to add new row to the bottom of datagridview with the click of a button and populate the last cell with <code>Rows.Count</code> number. but it seems that when the new row is added with <code>dataGridView1.Rows.Add()</code> method, it is inserted to the top of current row. How can I Insert a row to the bottom of datagridview? Is this behavior expected?</p>
  
  <p>Thanks.</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
   {
  
      dataGridView1.Rows[dataGridView1.Rows.Count-1].Cells[0].Value = dataGridView1.Rows.Count;
      dataGridView1.Rows.Add();
  
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Q7gIa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q7gIa.png" alt="enter image description here"></a></p>