Solved

ComboBox lose focus with pressing keyboard arrow keys

Posted on 2011-09-30
3
748 Views
Last Modified: 2012-05-12
Hello!

I am working with Windows Forms. I have a DataGridView with several DataGridViewTextBoxColumns. When I enter a cell in the DataGridView, ComboBox is displayed in top of that cell - I am using ComboBox instead of DataGridViewComboBoxColumn, because DataGridViewComboBoxColumn becomes very slow when filled with more than 1000 items (I have several thousand).

The problem is: when my ComboBox receives focus, I can't take focus from it with only keyboard. For example: I am typing somethning in the ComboBox. Now I want to jump on the next DataGridViewCell with the keyboard pressing arrow key (and perhaps, pressing Esc key before) - nothing happnes. ComboBox doesn't loose focus, it's not responding either to Esc key, nor arrow keys. I have to use mouse to move to the next cell.

Any idea?
0
Comment
Question by:AntonioRodrigo
3 Comments
 
LVL 13

Accepted Solution

by:
Naman Goel earned 250 total points
ID: 36890528
Actually DataGridViewComboBoxColumn is derived from DataGridViewColumn, on the other hand combobox is not derived from that. That's why it is behaving not in the way you expect.
0
 
LVL 5

Assisted Solution

by:AlokJain0412
AlokJain0412 earned 250 total points
ID: 36891212
U can use tab Key


 
0
 

Author Comment

by:AntonioRodrigo
ID: 36891238
Tab key doesn't work either.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question