title: Add row datagridview at every button click
body: <p>I have on a <code>usercontrol</code> a datagridview. I created a datatable and I set the source of datagrid to be this datatable. I want,at runtime,to be able to add how many rows on gridview  I want at every button click. </p>
  
  <p>My code :</p>
  
  <pre><code> private DataTable CreateTable()
      {
          Datatable table=new Datatable();
          table.Columns.Add("Name".ToString());
          table.Columns.Add("Size".ToString());
          DataRow dr = table.NewRow();
          dr["Name"] = "Mike";
          DataRow dr2 = table.NewRow();
          dr2["Name"] = "Ryan;
          DataRow dr3 = table.NewRow();
          dr3["Name"] = "Taylor";
          dr["Size"] = " one";
          dr2["Size"] = "two";
          table.Rows.Add(dr);
          table.Rows.Add(dr2);
          table.Rows.Add(dr3);
          return table;
       //and on my constructor I set gridview.DataSource=Datatable;
      }
  
   //Code  on the event:
   private void button_Click(object sender, EventArgs e)
      {
  
          DataRow NewRow = table.NewRow();
          table.Rows.Add(NewRow);
      }
  </code></pre>