title: Unable to remove DataGrid rows / clear table
body: <p>I trying to clear the <code>DataGrid</code> table but am unable to do so. I have the following code</p>
  
  <pre><code>carGrid.RowCount = 0;
  carGrid.Rows.Clear();
  carGrid.DataSource = null;
  </code></pre>
  
  <p>which gives me this error:</p>
  
  <blockquote>
    <p>Additional information: RowCount property cannot be set on a data-bound DataGridView control.</p>
  </blockquote>
  
  <p>If I remove the line</p>
  
  <pre><code>carGrid.RowCount = 0;
  </code></pre>
  
  <p>from the code I get that error: </p>
  
  <blockquote>
    <p>Additional information: Cannot clear this list.</p>
  </blockquote>