I saw this code and I want to implement it, in a datagridview, but the problem is that it only allows writing a character, but it works. in autocomplete, how could this allow you to completely write the word.
private void comboBox1_KeyPress(object sender, KeyPressEventArgs e)
{
string name = string.Format("{0}{1}", comboBox1.Text, e.KeyChar.ToString());
DataRow[] rows = dataTable.Select(string.Format("place LIKE '%{0}%'", name));
DataTable filteredTable = dataTable.Clone();
foreach(DataRow r in rows)
filteredTable.ImportRow(r);
comboBox1.DataSource = null;
comboBox1.DataSource = filteredTable.DefaultView;
comboBox1.DisplayMember = "place";
}