I have an unbound DataGridView. Previously I was able to select the row header and press the Delete key to delete the row. This no longer works. I don't know when it stopped working. I have 'AllowUserToDeleteRows' set to True.
The entire row is selected and pressing the Delete key erases the contents of the first column and does not remove the row.
Obviously the 'UserDeletingRow' event is not fired because the row is not deleted.
Just to clarify I am not trying to delete any data, will handle this manually as the grid is unbound, I just want the visible row of the grid the user sees to be deleted.
Does anyone have any idea what may have caused this behaviour?
The entire row is selected and pressing the Delete key erases the contents of the first column and does not remove the row.
Obviously the 'UserDeletingRow' event is not fired because the row is not deleted.
Just to clarify I am not trying to delete any data, will handle this manually as the grid is unbound, I just want the visible row of the grid the user sees to be deleted.
Does anyone have any idea what may have caused this behaviour?