title: Editable combobox not working properly
body: <p>I have made a Editable Combobox which does filtering of items. </p>
  
  <p>There are some problems which are numbered below.</p>
  
  <p>1.) First Problem is that it works only for the very first time. For example for first time if I type B ,it shows me list of items starting with B. Then if i press Backspace and enter again B, then it shows me only first item in the list starting with B. This is the actual problem now. Below is link to my modified code.</p>
  
  <p>2.) Second Problem is that i am not able to type a complete word in Combobox, it allows me to type only the 1st letter. And it shows me list of items matching it.</p>
  
  <p><strong>XAML SIDE CODE</strong></p>
  
  <pre><code>&lt;ComboBox Height="23" HorizontalAlignment="Left" Margin="292,104,0,0" Name="comboBox3" VerticalAlignment="Top" Width="149" IsEditable="True" IsTextSearchEnabled="True" PreviewTextInput="comboBox3_PreviewTextInput" TextBoxBase.TextChanged="ComboBox_TextChanged"/&gt;
  </code></pre>
  
  <p><strong>EVENT HANDLERS</strong></p>
  
  <pre><code>private void comboBox3_PreviewTextInput(object sender, TextCompositionEventArgs e)
      {
          ComboBox comboBox = sender as ComboBox;
          comboBox.IsDropDownOpen = true;
  
  
      }
  
      private void ComboBox_TextChanged(object sender, TextChangedEventArgs e)
      {
          if (((ComboBox)sender).Text != "")
          {
              DataSet ds = new DataSet();
              SqlDataAdapter da = new SqlDataAdapter("Select p_id_pk,p_name FROM products", con);
              da.Fill(ds, "products");
              comboBox3.ItemsSource = ds.Tables[0].DefaultView.RowFilter = "p_name like '" + ((ComboBox)sender).Text + "'+'%'";
              //comboBox3.ItemsSource = ds.Tables[0].DefaultView.RowFilter = "p_name like 'B%'";
              comboBox3.ItemsSource = ds.Tables[0].DefaultView;
              comboBox3.DisplayMemberPath = ds.Tables[0].Columns["p_name"].ToString();
              comboBox3.SelectedValuePath = ds.Tables[0].Columns["p_id_pk"].ToString();
          }
      }
  </code></pre>
  
  <p>Please Help</p>