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.

How to Select Text in Auto Complete like TextBox.SelectAll()

Thread ID:





99433 May 19,2011 10:07 PM May 31,2011 11:46 PM General Discussion 5
Tags: General Discussion
Tun Nwe Aung
Asked On May 19, 2011 10:07 PM


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 04:37 AM

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 29, 2011 10:30 PM

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

Deenadhayalan M [Syncfusion]
Replied On May 31, 2011 09:49 AM

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 May 31, 2011 11:13 PM

Thank you so much. It's working great.

Deenadhayalan M [Syncfusion]
Replied On May 31, 2011 11:46 PM

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.

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.