I have a datagrid where ten rows will be populated with edit and delete buttons. When I want to edit a row, the edit button will be changed to save and cancel, but if the user clicks on the delete button, it gives me the error, “object references not set to an instance”. Please let me know how to handle this?
Share
Why dont you just set the “delete button” as disabled while the users edits the entry?
Then when the user clicks save you enabled it again.
Like :
and then