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

Autocomplete matching across multiple columns

Thread ID:





56258 Feb 12,2007 07:11 PM UTC Feb 13,2007 09:00 PM UTC WinForms 3
Tags: Tools
Asked On February 12, 2007 07:11 PM UTC

I am currently working on a user control that uses a text box, label and autoComplete control.

The autoComplete control has two columns defined, one for the customer code and a second for the customer name.

Currently matching is done against the customer code but it looks like the client may want matching to be done against both the code and the customer name.

Can this be done with the out of the box autoComplete functionality or will this require creating a specialized autoComplete control that inherits from the autoComplete class?

Any suggestions of approaches would be appreciated.

Murugan [Syncfusion]
Replied On February 12, 2007 11:16 PM UTC


AutoComplete column Matching could be assigned for more than one columns.

Here is the code snippet :

this.comboBoxAutoComplete1.AutoCompleteControl.Columns[1].MatchingColumn = true;
this.comboBoxAutoComplete1.AutoCompleteControl.Columns[2].MatchingColumn = true;

Herewith I have attached the sample. Please refer to the sample and let me know if it helps.


Thank you for using Syncfusion products.

Murugan P.S

Replied On February 13, 2007 12:40 AM UTC

Thanks for the response, however, I just ran your example and it only showed the autoComplete functioning on the last column which the matchingColumn was set to true.

I tried this using the AutoComplete (as opposed to the AutoCompleteComboBox) and had the same behavior. While debugging I checked the MatchingColumn properties and only the last one set remained true. The previous were switched to false.

I ran your sample and got the following results:
J - no match but should have displayed James Watt
S - no match but should have displayed Sherlock Holmes
W - found James Watt
H - found Sherlock Homes.

Let me know if this is a bug.


(VS .Net 2003, Syncfusion Windows 4.2.***)

Murugan [Syncfusion]
Replied On February 13, 2007 09:00 PM UTC


We are really sorry for the previous update.

We could not set more than one column as MatchingColumn. But we could achieve this by handling the KeyUp event of the ComboBoxAutoComplete control. I have modified the sample. Please refer to this and let me know if it helps.


Thank you for your patience.

Murugan P.S


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

or the page will be automatically redirected to 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