I have a very interesting question here.
DataGridView1 is for data input and display, I set its editmode to onkeystroke. When the current cell is NOT in edit mode, click mouse right button will bring up a contextmenustrip. If the menu shows up and you don't choose any menu item, just click somewhere else, the menu disappears, the problem is, now you cannot edit any cell, no matter how much keystroke you do, no matter which cell you select, it does nothing. What happened? Your help is appreciated!

Recommended Answers

All 3 Replies

Sorry, be more clear! what's your question?!

I'd be willing to bet it has something to do with the control's focus. You might make sure that it keeps focus after clicking other stuff as it will not accept keystrokes without having focus.

You are right drew.haley. The reason was what you said, and was fixed. Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.