From df5293ce1e581a4572a6be5ac22a588b3aeb1a42 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Mon, 11 Jul 2022 12:58:20 -0600 Subject: [PATCH] Fix bug caused by moving column before frozen "Remove" column --- Source/LibationWinForms/GridView/ProductsGrid.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/LibationWinForms/GridView/ProductsGrid.cs b/Source/LibationWinForms/GridView/ProductsGrid.cs index 35996f27..df6a5ec0 100644 --- a/Source/LibationWinForms/GridView/ProductsGrid.cs +++ b/Source/LibationWinForms/GridView/ProductsGrid.cs @@ -38,6 +38,7 @@ namespace LibationWinForms.GridView InitializeComponent(); EnableDoubleBuffering(); gridEntryDataGridView.Scroll += (_, s) => Scroll?.Invoke(this, s); + removeGVColumn.Frozen = false; } private void EnableDoubleBuffering() @@ -115,6 +116,9 @@ namespace LibationWinForms.GridView foreach (var book in bindingList.AllItems()) book.Remove = RemoveStatus.NotRemoved; } + + removeGVColumn.DisplayIndex = 0; + removeGVColumn.Frozen = value; removeGVColumn.Visible = value; } }