We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Multicolumn Combo Box

When a Multicolumn Combo Box is bound to a data source the combo shows the first item in the list rather then a blank. I have tried several ways to change this behavior, but have not been successful. Is there a way to programmatically blank out the combo box so that the user has to make a selection?

Scott




1 Reply

JS Jeba S Syncfusion Team January 9, 2008 08:10 AM UTC

Hi Scott,

You can programmatically blank out the combo box by setting the text property to null after setting the data source.

Below is the code snippet:

this.multiColumnComboBox1.DataSource=mt;
this.multiColumnComboBox1.DisplayMember="ProductID";
this.multiColumnComboBox1.ValueMember = "ProductName";
this.multiColumnComboBox1.Text = null;


Please refer the sample and let us know if this helps.
http://websamples.syncfusion.com/samples/Tools.Windows/F70909/main.htm

Kindly let us know if you need any further assistance.

Thank you for using Syncfusion Products.

Best Regards,
Jeba.


Loader.
Live Chat Icon For mobile
Up arrow icon