Click here to Skip to main content
12,358,497 members (64,204 online)
Click here to Skip to main content

Stats

120.5K views
5.8K downloads
56 bookmarked
Posted

Auto-filter for Microsoft WPF DataGrid

, 29 Jan 2009 Eclipse
Allows auto filtering functionality for DataGrid columns.
WPFGridFilter
PowerCollections
PowerCollections.csproj.user
Properties
Stepi.Collections
bin
Filters
Properties
Stepi.UIFilters
bin
Initializers
Properties
Themes
Test.GridSorting
bin
Debug
Test.GridFilter.vshost.exe
Properties
using System;
using System.Reflection;
using Stepi.Collections;
using Stepi.Collections.Filters;

namespace Stepi.UIFilters.Initializers
{
    public class NotEqualFilterInitializer : EqualFilterInitializer
    {
        private const string _filterName = "Not Equal";

        protected override sealed IFilter GetFilter(PropertyInfo propertyInfo)
        {
            return (IFilter)Activator.CreateInstance(typeof(NotEqualFilter<>).MakeGenericType(propertyInfo.PropertyType), propertyInfo);
        }

        protected override string FilterName
        {
            get
            {
                return _filterName;
            }
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Eclipse Public License 1.0

Share

About the Author

Stefan Bocutiu
Software Developer (Senior) Lab49
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 29 Jan 2009
Article Copyright 2009 by Stefan Bocutiu
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid