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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MultiColumnCombobox: searching or a Value

Thread ID:





42160 Mar 21,2006 05:06 PM UTC Mar 29,2006 06:36 AM UTC WinForms 3
Tags: Tools
Administrator [Syncfusion]
Asked On March 21, 2006 05:06 PM UTC

Hi! I have a MultiColumnCombobox (MCCB) and bound a DataTable to it. I set the DataMember and the ValueMember. After the form is loaded, I have to set the MCCB to the initial value: mccb.SelectedValue = 12 (12 is a Persons ID). If the value 12 is not within the MCCBc value (maybe the person has been deleted), the SelectedIndex is switched to 0. But that''s wrong. So how can I check, if the initial value can be found in the MCCBs values? Greetings Falk

Anupama Roy [Syncfusion]
Replied On March 22, 2006 11:35 AM UTC

Hi Falk, I could see that If the value 12 is not within the MCCBc value,then field goes blank and no value is displayed that time.I am sorry,I could not reproduce the part that says "the SelectedIndex is switched to 0".Also,could you make it clear what exactly you would like to display if the value is already removed from list? I have attached a sample that shows a comparison between .net ComboBox and our MultiColumnComboBox.I have done this with our latest version 4.1.Please let me know if you are able to reproduce your issue with this sample If so, it would be appreciable if you can modify this and send it back for furthur investigation. Sample Thank you for choosing Syncfusion. Regards, Anu.

Administrator [Syncfusion]
Replied On March 28, 2006 04:59 PM UTC

Hi! Sorry for my late answer! The problem is, that the MCCB is within a usercontrol. I set the SelectedValue within the constructor (or maybe in ''OnLoad'' - the behavior is the same). have a look at the sample I attached - maybe you can find a good solution. Regards Falk


Anupama Roy [Syncfusion]
Replied On March 29, 2006 06:36 AM UTC

Hi Falk, Have you tried setting the default value to be selected using Selected index of MulticolumnComboBox in the constructor? Thanks, Anu.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon