combobox in datagridview requires 2 clicks to drop down

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

It appears that when you first click on the combo box that it just sets the
focus to the control, then the 2nd click makes it drop down. Is there a way
to make this work with just one click?

This is very annoying as a user to have to click twice whenever I use the
combo box in the datagridview.

Thanks,
rut
 
rut said:
It appears that when you first click on the combo box that it just sets the
focus to the control, then the 2nd click makes it drop down. Is there a way
to make this work with just one click?

This is very annoying as a user to have to click twice whenever I use the
combo box in the datagridview.

Thanks,
rut

Can you create a handler for the Enter event which is fire when the
control gets focus that sets the DroppedDown property of the combo box
to true?

private void comboBox1_Enter(object sender, System.EventArgs e)
{
comboBox1.DroppedDown = true;
}

Regards
Richard

http://www.richardjonas.com/blog
 
I thought about that but I'm unsure how to create a handler and attach it to
the grid's combo box. Does anyone know how?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top