MultiColumnComboBox auto drop down

How do I get a MultColumnComboBox to auto drop down when a user starts typing in the control?

Jerry


3 Replies

AR Anupama Roy Syncfusion Team August 3, 2006 05:26 PM UTC

Hi Jerry,

You can handle the KeyPress event and set the

DroppedDown property to true as shown below.



private void multiColumnComboBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if(e.Handled ==false)
{
this.multiColumnComboBox1.DroppedDown =true;
}
else
{
this.multiColumnComboBox1.DroppedDown =false;
}
}

Please take a look at the sample attached and let us know if you have any difficulties.

Thanks,

Anu.


MulitColumnComboBox.zip


JL Jerry Lawrence August 3, 2006 08:04 PM UTC

That works. It causes the dropdown to flash/jump on each keypress.

I tried putting DroppedDown = true in the Enter event - the dropdown doesn''t appear.

Is there a way to get around the flashing of the dropdown?

Thanks,

Jerry


AD Administrator Syncfusion Team August 4, 2006 06:43 AM UTC

Hi Jerry,

Thanks for your reply. I could see the issue and this can be ignored by introducing a small condition in the same code. Please take a look at the sample attached.


Regards,
Velmurugan E.




MulitColumnComboBoxForum1.zip

Loader.
Up arrow icon