web analytics
How to show the dropdown of a DataGridViewComboBoxColumn cell with a single click? Options
codeling
Posted: Tuesday, October 17, 2017 10:38:34 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

I have a DataGridViewComboBoxColumn column in a DataGgridView table, by default I have to click twice on the combo box drop down arrow to get the drop down list to appear -- what's happening as near as I can tell is that the first click selects the row, and the second click is delivered to the combo box,

Is it possible to modify this behavior so that a single click both selects the row and drops down the combo box? 

Sponsor
Posted: Tuesday, October 17, 2017 10:38:34 PM
 
codeling
Posted: Tuesday, October 17, 2017 10:39:11 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 919
Points: 3861

There is property of DataGridView EditMode, and default value is EditOnKeystrokeOrF2. If you choose EditOnEnter then when you click cell with ComboBox only once you will get dropdown.

Users browsing this topic
Guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2017 Digcode.com. All rights reserved.