private void TxtRecipeName_TextChanged(object sender, TextChangedEventArgs e) { RecipeService recipeService = new RecipeService(); items = recipeService.GetAllRecipes(); CollectionViewSource.GetDefaultView(DataGridOrder.ItemsSource).Refresh(); filteredList = items.Where(i => view.Filter(i)).ToList(); DataGridOrder.ItemsSource = items.Where(i => view.Filter(i)).ToList(); }
protected void TextBox_TextChanged(object sender, TextChangedEventArgs e) { CollectionViewSource.GetDefaultView(DataGridResults.ItemsSource).Refresh(); filteredList = items.Where(i => view.Filter(i)).ToList(); }
private void txtFilter_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e) { CollectionViewSource.GetDefaultView(DataGridResults.ItemsSource).Refresh(); filteredList = items.Where(i => view.Filter(i)).ToList(); }