title: How to empty the cells of a DataGridView in C#?
body: <p>I've found questions similar on SO already, all over the net actually. Though I haven't found a working answer yet.</p>
  
  <p>So I'm working in a windows form application using Visual studio 2008. Language is C#</p>
  
  <p>I have a DataGridView that is <strong>not</strong> bound to a DataSource.</p>
  
  <p>so:</p>
  
  <pre><code>MyDataGridView.DataSource = null;
  </code></pre>
  
  <p>wont work...</p>
  
  <p>I've also tried</p>
  
  <pre><code>MyDataGridView.Rows.Clear();
  </code></pre>
  
  <p>But this removes all my custom made rows.</p>
  
  <p>So I'm now looking for a way to just empty the contents of all cells (not including header cells). So it shouldn't affect anything else but the contents of the cells itself.</p>