Click here to Skip to main content
15,885,214 members
Articles / Desktop Programming / WPF

Automatic WPF Toolkit DataGrid Filtering

Rate me:
Please Sign up or sign in to vote.
4.91/5 (109 votes)
21 May 2010BSD6 min read 1.4M   23.5K   167  
This article discusses a component that enables automated content filtering for the WPF Toolkit DataGrid.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataGridFilterTest.TestData
{
    public class Employee
    {
        public int Id { get; set; }

        public string Name { get; set; }
        public string Email { get; set; }
        public string Address { get; set; }

        public Guid EmployeeGuid { get; set; }

        public int WorkExperience { get; set; }

        public EmployeePosition Position { get; set; }
        public int EmployeeStatusId { get; set; }

        public bool IsInterviewed { get; set; }

        public DateTime DateOfBirth { get; set; }
    }

    public class EmployeePosition
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }

    public class EmployeeStatus
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }
}

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 BSD License


Written By
Software Developer Fireminds
Croatia Croatia
Sanjin Matusan - C#, WPF, SQL, .NET

Comments and Discussions