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.
Unfortunately, activation email could not send to your email. Please try again.

Syncfusion AutoComplete combobox

Thread ID:

Created:

Updated:

Platform:

Replies:

80545 Apr 9,2009 07:14 AM Apr 13,2009 08:11 AM Windows Forms 1
loading
Tags: Tools
Subrata Das
Asked On April 9, 2009 07:14 AM

Hello All,
Is there any way to distinguish among multiple items with the same name but in different case in an auto complete combobox ?

I have two items with the same display text say "domain alias himanshu" and "Domain Alias Himanshu".Though I select "Domain Alias Himanshu" from the combobox,when I try to get get the value of another column from the list using the following line of code,it always gives me the value corresponding to "domain alias himanshu"

cmbRelationWrp.AutoCompleteControl.SelectedItem.ItemArray[0].ToString()

Thanks & Regards,
Subrata Das


Fathima Shalini P [Syncfusion]
Replied On April 13, 2009 08:11 AM

Hi Subrata,

Thank you for your interest in Syncfusion Products.

We can retrieve the correct matching item using CaseSensitive property to true and retrieving the value using AutoCompleteItemSelected event. Kindly refer to the below sample and the code snippet provided below:


private void comboBoxAutoComplete1_AutoCompleteControl_AutoCompleteItemSelected(object sender, Syncfusion.Windows.Forms.Tools.AutoCompleteItemEventArgs args)
{
textBoxExt1.Text = this.comboBoxAutoComplete1.AutoCompleteControl.SelectedItem.ItemArray[0].ToString();
}


http://files.syncfusion.com/support/Tools.Windows/7.1.0.30/F80545/main.htm

Please let me know if any concerns.

Regards,
Fathima


CONFIRMATION

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.

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.

;