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 Text in Auto Complete like TextBox.SelectAll()

Thread ID:





99433 May 20,2011 02:07 AM UTC Jun 1,2011 03:46 AM UTC General Discussion 5
Tags: General Discussion
Tun Nwe Aung
Asked On May 20, 2011 02:07 AM UTC


In AutoComplete Control, After I selected the item in drop down list, I want to highlight the text of selected item. How can it be done? Please advise. Thanks.

Iniyen M A [Syncfusion]
Replied On May 24, 2011 08:37 AM UTC

Hi Tun,

Thanks for your interest in Syncfusion product.

You can achieve your requirement by using the AutoComplete's DropDownClosed event. For more information i have included the code snippet as follows.

[Code Snippet]
this.autoComplete1.DropDownClosed += new Syncfusion.Windows.Forms.PopupClosedEventHandler(this.autoComplete1_DropDownClosed);
private void autoComplete1_DropDownClosed(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs e)

Please let us know if you need further assistance.

Iniyen M.A.

Tun Nwe Aung
Replied On May 30, 2011 02:30 AM UTC

Thanks for your reply. There is no DropDownClosed event in wpf AutoComplete control. Please advise.

Deenadhayalan M [Syncfusion]
Replied On May 31, 2011 01:49 PM UTC

Hi Tun,

Thanks for your interest in Syncfusion product.

To highlight the text of selecteditem in Autocomplete control by using the AutoComplete's IsDropDownOpenChanged event. Please find the workaround sample under the following location for your reference.

"PART_EditableTextBox" is a Textbox name which is used in the style of Autocomplete control source.

Please let us know if you have any queries.



Tun Nwe Aung
Replied On June 1, 2011 03:13 AM UTC

Thank you so much. It's working great.

Deenadhayalan M [Syncfusion]
Replied On June 1, 2011 03:46 AM UTC

Hi Tun,

Thank you for the udpate.



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