コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();

            // Sample usage of the filtering event
            Grid1.GetFilter().Filtering += Grid1_Filtering;

            ExternalFilter = item => ((DataItem)item).Column1.Contains("7");
        }
コード例 #2
0
        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
            });
        }
コード例 #3
0
 private void ClearAllFilters_Click(object sender, RoutedEventArgs e)
 {
     Grid1.GetFilter().Clear();
 }