Making DataGridViewComboBoxCell control drop down on first click when DataGridView does not have focus

372 views Asked by At

I have seen a lot of questions similar to this but nothing that addresses my issue. I have a panel in a windows VB.Net application that has a hierarchy of visible controls, one of which is a DataViewGrid control that may contain a DataGridViewComboBoxCell control. The DataViewGrid is a child control of other controls and it does not have initial focus. What I am wanting is for a user to be able to, with a single mouse click, is to click on the dropdown of a visible DataGridViewComboBoxCell control and to make the dropdown list for it visible. Currently the first mouse click is switching focus to the DataGridView control and a second mouse click is required to show the dropdown list. Is there a way to accomplish this with a single mouse click? I don't know if this is possible but it would certainly be nice.

1

There are 1 answers

0
Sandy On

You can change the EditMode property of DataGridView control to "EditOnEnter".

enter image description here