mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-10-20 20:55:05 -04:00
Disable buttons on new row
This commit is contained in:
1 parent
a52b466c85
commit
efc9ff4bd8
1 file changed
+1
-1
@@ -93,7 +93,7 @@ namespace LibationWinForms.Dialogs
|
||||
var dgv = (DataGridView)sender;
|
||||
|
||||
var col = dgv.Columns[e.ColumnIndex];
|
||||
if (col is DataGridViewButtonColumn && e.RowIndex >= 0)
|
||||
if (col is DataGridViewButtonColumn && e.RowIndex >= 0 && !dgv.Rows[e.RowIndex].IsNewRow)
|
||||
{
|
||||
var row = dgv.Rows[e.RowIndex];
|
||||
switch (col.Name)
|
||||
|
||||
Reference in new issue
Block a user