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

How to select an item in AutoComplete from code behind by using the key field?

Platform: ASP.NET Web Forms |
Control: AutoComplete |
Published Date: January 27, 2015 |
Last Revised Date: January 27, 2015 |
Product Version:
Tags: autocomplete


AutoComplete control value can be selected by using its key value from code behind. This enables you to select a unique item when there are multiple items with the same Text value.


To select the AutoComplete TextBox value from code behind by using its Key value, you can use the SelectValueByKey property. By passing the corresponding Key value in the SelectValueByKey property, the Value is selected in the AutoComplete TextBox accordingly.



CodeBehind CS


Note: The SelectValueByKey property can also be set from the ASPX page.

You must log in to leave a comment
Abhishek Shandilya
Dec 03, 2018

How can i select multiple values programmatically. This solution works only for single item selection.


Please sign in to access our KB

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