mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-29 12:24:32 -04:00
Disable buttons on new row
This commit is contained in:
@@ -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