• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 787
  • Last Modified:

ComboBox lose focus with pressing keyboard arrow keys

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
AntonioRodrigo
Asked:
AntonioRodrigo
2 Solutions
 
Naman GoelSoftware engineer 1Commented:
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
 
AlokJain0412Commented:
U can use tab Key


 
0
 
AntonioRodrigoAuthor Commented:
Tab key doesn't work either.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now