I have a DataGridView in the form.
I want to remove rows from the grid by pressing the delete key, but the delete button seems to be dead until I log in CellEditMode.
If I enter CellEditMode, then the delete key works, but obviously only to delete the contents of the cells, not to delete the rows.
The DataGridView has AllowUserToDeleteRow = trueand the grid is not connected.
I have other lattices where this function works correctly, but I donโt see the difference.
source
share