title: can't delete a row from DataGridView
body: <p>I'm simply trying to remove a row of DataGridView by taking the first cell's value on each row,</p>
  <ul>
  <li>I have a list, called &quot;bags&quot;;</li>
  <li>I have a delete method for the list</li>
  <li>I have the string barcode;</li>
  </ul>
  <h2><a href="https://i.stack.imgur.com/j0PEy.png" rel="nofollow noreferrer">enter image description here</a></h2>
  <p>the Error I get is:
  <strong>'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'</strong></p>
  <p><a href="https://i.stack.imgur.com/h4D89.png" rel="nofollow noreferrer">enter image description here</a></p>