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.

AutoComplete programmatically select an item

Thread ID:

Created:

Updated:

Platform:

Replies:

73221 Apr 24,2008 04:43 PM Apr 30,2008 08:54 AM Windows Forms 1
loading
Tags: Tools
reza fotovat
Asked On April 24, 2008 04:43 PM

Hi, I set a Textbox that link to the autocomplete control populated with a bindingsource,

I want to add an new item that typed in the textbox to the dataset and I do that with BeforeAddItem Event

my question is how can I select the added item or pass it to AutoCompleteItemSelected Event ?


Fathima Shalini P [Syncfusion]
Replied On April 30, 2008 08:54 AM

Hi Reza,

Thank you for your interest in Syncfusion Products.

Please find the following code snippets that selects the newly added item from the Autocomplete control.


void autoComplete1_AutoCompleteItemSelected(object sender,
Syncfusion.Windows.Forms.Tools.AutoCompleteItemEventArgs args)
{
Console.WriteLine(args.SelectedValue);
Console.WriteLine(this.textBox1.Text);
}


Please find a simple sample in the following link:

http://websamples.syncfusion.com/samples/Tools.Windows/F73221/main.htm

If I have misunderstood your requirement, could you please explain me in detail so that I could work out in depth and provide you a better solution?

Please let me know if any concerns.

Regards,
Fathima





CONFIRMATION

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.

;