winforms - How to change the behaviour of the DataGridViewComboBoxColumn in C#? -


i'm working data grid contains combo box column, editing combo box (by clicking on it) gets annoying sometimes, since 1 must click @ least twice change value of field. want change behaviour, thought simple: create onmouseover event make mouse-overed combo box selected, available event disposed one.

is there way change behaviour?

i dealt same problem, , solved setting datagridview.editmode editonenter.

if don't behaviour other columns, found this suggestion placing in cellenter event:

if (datagridview1.columns[e.columnindex] datagridviewcomboboxcolumn) {     ((datagridviewcomboboxeditingcontrol)datagridview1.editingcontrol).droppeddown = true; } 

i haven't tried it, looks promising. same technique discussed on this question.


Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -