web analytics

How to show the dropdown of a DataGridViewComboBoxColumn cell with a single click?

Options

codeling 1602 - 6666
@2016-02-18 23:02:11

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? 

@2016-02-18 23:26:22

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.

Comments

You must Sign In to comment on this topic.


© 2024 Digcode.com