Fix bug caused by moving column before frozen "Remove" column
This commit is contained in:
parent
664ff6aabd
commit
df5293ce1e
@ -38,6 +38,7 @@ namespace LibationWinForms.GridView
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
EnableDoubleBuffering();
|
EnableDoubleBuffering();
|
||||||
gridEntryDataGridView.Scroll += (_, s) => Scroll?.Invoke(this, s);
|
gridEntryDataGridView.Scroll += (_, s) => Scroll?.Invoke(this, s);
|
||||||
|
removeGVColumn.Frozen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void EnableDoubleBuffering()
|
private void EnableDoubleBuffering()
|
||||||
@ -115,6 +116,9 @@ namespace LibationWinForms.GridView
|
|||||||
foreach (var book in bindingList.AllItems())
|
foreach (var book in bindingList.AllItems())
|
||||||
book.Remove = RemoveStatus.NotRemoved;
|
book.Remove = RemoveStatus.NotRemoved;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
removeGVColumn.DisplayIndex = 0;
|
||||||
|
removeGVColumn.Frozen = value;
|
||||||
removeGVColumn.Visible = value;
|
removeGVColumn.Visible = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user