Disable buttons on new row
This commit is contained in:
parent
a52b466c85
commit
efc9ff4bd8
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue