How to activate combobox on first click (Datagridview)

后端 未结 6 646
故里飘歌
故里飘歌 2020-12-13 12:48

In winforms, you need to click the combobox twice to properly activate it - the first time to focus it, the second time to actually get the dropdown list.

How do I c

6条回答
  •  醉酒成梦
    2020-12-13 13:40

    Perhaps old.. But make sure to set ReadOnly property to false, else the cell wont enter editmode and therefore the EditingControl returns null and casting DroppedDown = true will cast a NullReferencException.

提交回复
热议问题