public MainWindow() { InitializeComponent(); // Sample usage of the filtering event Grid1.GetFilter().Filtering += Grid1_Filtering; ExternalFilter = item => ((DataItem)item).Column1.Contains("7"); }
public MainWindow() { InitializeComponent(); // Sample usage of the filtering event Grid1.GetFilter().Filtering += Grid1_Filtering; ExternalFilter = item => ((DataItem)item).Column1.Contains("7"); BindingOperations.SetBinding(Column2, DataGridFilterColumn.FilterProperty, new Binding("DataContext.Column2Filter") { Source = this, Mode = BindingMode.TwoWay }); }
private void ClearAllFilters_Click(object sender, RoutedEventArgs e) { Grid1.GetFilter().Clear(); }