DataGridView combo box

  • Thread starter Thread starter Mark Rendle
  • Start date Start date
M

Mark Rendle

I've got a DataGridView with a combo box in one of the columns. As it
stands, the user has to click the dropdown button twice - once to focus the
cell, and again to drop down the list. I can't find any property to change
this behaviour, the EditingControlShowing event doesn't fire until they
click the dropdown button, and I can't find a property or method to get the
DataGridViewComboBoxEditingControl object outside of the
EditingControlShowing event.

So, does anyone know, how can I get the list portion to display the first
time the dropdown button is clicked?
 
This is insanely annoying.

I've added an event handler to the CellEnter event which calls BeginEdit,
which forces the EditingControlShowing event to fire. Then in the
EditingControlShowing handler, I'm setting the
DataGridViewComboBoxEditingControl.DroppedDown to true. This makes the list
portion appear, but it appears under the cell which previously had the
focus.
 
Back
Top