WPF Text Change value will Auto select Listview item

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;  
         }  
         }  
     }  

Popular posts from this blog

mvc razor textboxfor change event change another textboxfor value

WPF Crystal Report Viewer Using SAP

ASP.NET MVC razor SAP Crystal report