Reputation: 13616
I have DataGridView whith Column of comboboxes.
I have to click twice the cell in order combo to be opened.
Anyone knows how may I make it to be opened from the first click.
Thank you in advance.
Upvotes: 2
Views: 6626
Reputation: 1331
Here's an easier way:
In the CellEnter event, check if the column index corresponds with the combobox column. If it does, set
DataGridView.EditMode = DataGridViewEditMode.EditOnEnter;
or if it's a regular column, set it to the default
DataGridView.EditMode = DataGridViewEditMode.EditOnKeystrokeOrF2;
Upvotes: 0
Reputation: 6079
Check below links it will help you
Direct access to DataGridView combobox in one click?
Upvotes: 2