Visual studio 2005 and access 2007.
Autocomplte textbox is not displaying results.
Here is my code
txtname.AutoCompleteCustomSource = m_namesCollection;
m_namesCollection.Clear();
if (!String.IsNullOrEmpty(txtname.Text.Trim().ToString()))
{
m_search = txtname.Text.Trim().ToString();
foreach (DataRow cust_dr_autoloop in m_dt_Customer.Rows)
{
if (cust_dr_autoloop["cust_name"].ToString().StartsWith(m_search))
{
m_namesCollection.Add(cust_dr_autoloop["cust_name"].ToString());
}
}
}
I have set the autocomplete mode to suggest and autocomplete source to custom source.