if you want to select Listview item in Textfield value change you can do it by the code in text Change Event:
private void textBox1_TextChanged(object sender, TextChangedEventArgs e)
{
string typeID = textBox1.Text;
for (int i = 0; i < unitNamelistView.Items.Count; i++)
{
EUnitMeasurement aWHType = (EUnitMeasurement)unitNamelistView.Items[i];
if (aWHType.UnitName == typeID)
{
unitNamelistView.SelectedIndex = i;
break;
}
}
}
Comments
Post a Comment