Thursday, February 24, 2011

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

SQL Get all Index create script from Database

To get all script from database as a create new index into another database you can use the following --Get all Index Script SELECT...