title: How to add a row to a unbound DataGridView?
body: <p>I have a <code>DataGridView</code> in C# and I want to add rows in a <em>programmatic</em> way. There is no data bound to the grid but when I call <code>dataGrid.Rows.Add();</code> it throws a <code>System.InvalidOperationException</code>.</p>
  
  <p>I looked all over the internet and I only found this problem for people who have data bound to it. I want the grid to be controlled completely from the code.</p>
  
  <p>Could anyone help me with this please?</p>
  
  <p>Not sure if it makes a difference but I use .Net framework 3.5.</p>