DataGridView Row Select with EditMode=EditOnEnter

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top