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
close icon

Syncfusion AutoComplete combobox

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


1 Reply

FS Fathima Shalini P Syncfusion Team April 13, 2009 12:11 PM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon