I'm simply trying to remove a row of DataGridView by taking the first cell's value on each row,
- I have a list, called "bags";
- I have a delete method for the list
- I have the string barcode;
enter image description here
the Error I get is: 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'