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

Setting SelectedIndex property of the AutoComplete to -1 control does not reset the index.

Thread ID:





50067 Oct 4,2006 09:54 PM UTC Oct 5,2006 11:28 AM UTC WinForms 1
Tags: Tools
Oleg Petruny
Asked On October 4, 2006 09:54 PM UTC

I am using the version

I have several Autocomplete control on the same form and I try to rest the index before displaying the dropdown using:
void _autoComplete_DropDownDisplayed(object sender,EventArgs e) {
//TODO: does not seem to work well ask syncfusion
this._autoComplete.SelectedIndex = -1;
this._autoComplete.SelectedValue = "";

The index is set to the same position as the last time I make a choice.

Anupama Roy [Syncfusion]
Replied On October 5, 2006 11:28 AM UTC

Hi Oleg,

The SelectedIndex property of AutoComplete or ComboBoxAutoComplete does not serve the same purpose like a ComboBox control SelectedIndex and the implementation is quite different.According to the current implementation of AutoComplete,last browsed item will be set as the SelectedItem and index of the matching item is used internally to update this Text.

I will investigate on this furthur and let you know whether there is an alternative way to clear the last browsed item before the dropdown is displayed.

Thanks for choosing Syncfusion products.




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