Fix bug caused by moving column before frozen "Remove" column

This commit is contained in:
Michael Bucari-Tovo 2022-07-11 12:58:20 -06:00
parent 664ff6aabd
commit df5293ce1e

View File

@ -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;
}
}