From f1e92c8acbf8c0e4b3f1748ceb9f0e9bbf83ba6b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Sun, 10 Jul 2022 22:38:18 +0000 Subject: [PATCH] --- AyaNovaQBI/FixInvoiceProblems.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) {