DataGridView Row Select with EditMode=EditOnEnter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have found that if I set a DataGridView's EditMode property to EditOnEnter
then the user cannot select an entire row by clicking on the row header. This
prevents the user from being able to delete a row.

When the user clicks on the row header, all of the cells of the row become
highlighted, but at least one of the cells always remains in edit mode and
thus pressing the delete key does not delete the row. The keystroke is
instead sent to the active editing control of the cell instead of being
processed for row deletion.

For my particular situation, I really must have the EditMode be
EditOnEnter, but I also need for the user to be able to delete a row. Has
anybody seen this behavior or know of a way around it?
 
Back
Top