diff --git a/AyaNovaQBI/FixInvoiceProblems.cs b/AyaNovaQBI/FixInvoiceProblems.cs index 8d55efd..a2003d0 100644 --- a/AyaNovaQBI/FixInvoiceProblems.cs +++ b/AyaNovaQBI/FixInvoiceProblems.cs @@ -110,11 +110,13 @@ namespace AyaNovaQBI } //remove the object from the grid as it's now dealt with - e.Cell.Row.Delete(false); + MisMatches.RemoveAt(e.RowIndex); ChangesMade = true; //If all done then close up - if (grid.Rows.Count == 0) - this.Close(); + if (MisMatches.Count == 0) + Close(); + else + grid.DataSource = MisMatches;//rebind to refresh the grid } catch (Exception ex) {