Avatar of AvinashKN

asked on 

Disabling delete button while editing Gridview

Hello all,

I would like to know if its possible to disable the delete button while the user is editing a row in a gridview. I've posted the code I was experiementing with but it obviously is not the right solution since it only disables the first row.
Button btn = (Button)dgUserLevel.Rows[0].FindControl("btnDelete");
            btn.Enabled = false;

Open in new window


Avatar of undefined
Last Comment

8/22/2022 - Mon