Hello
Simple way is:
1. Bind a
List
to
ComboBox
2. In
TextChanged
event of
ComboBox
:
private void MyComboBox_TextChanged(object sender, EventArgs e)
{
List<string> myList =
string text = ((ComboBox)sender).Text.ToLower();
var names = myList.Where(n => n.ToLower().StartsWith(text));
if (names.Count() > 0)
{
myList = names.ToList();
}
}