AD
Administrator
Syncfusion Team
March 4, 2009 06:33 AM UTC
Hi Subrata,
Thank you for using Syncfusion products.
AutoCompleteItemSelected event will raise after selecting an item from autocomplete popup. The SelectedItem property displays selected item from the list and not from the autocomplete popup. Hence SelectedItem displays null inside AutoCompleteItemSelected event. You can use SelectedValue property of AutoCompleteItemEventArgs argument to get the selected value in the autocomplete popup .
Here is the code snippet.
[C#]
void autoComplete1_AutoCompleteItemSelected(object sender, Syncfusion.Windows.Forms.Tools.AutoCompleteItemEventArgs args)
{
Console.WriteLine(args.SelectedValue.ToString());
}
Please let me know if this helps you.
Regards,
Jaya