Skip to content

An example of WPF Datagrid with Filtering capability and expandable headers. Coded in MVVM style.

Notifications You must be signed in to change notification settings

nosalan/wpf-mvvm-datagrid-with-filtering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WPF MVVM Datagrid with Filtering

An example of WPF Datagrid with Filtering capability and expandable headers. Coded in MVVM style.

The filtering control is placed inside of the header of the column being filtered (in the image below it is Name column). The filter is collapsed by default, user needs to expand the expander in the column header to apply filtering. When filter is applied to the grid, the textbox with filter term is highlighted in red.

alt text

The filtering is performed directly on the collection bound to the Datagrid. A collection that supports filtering natively is CollectionViewSource, in this case this collection is wrapped around the ObservableCollection. When filter is active it also applies to newly added elements.

About

An example of WPF Datagrid with Filtering capability and expandable headers. Coded in MVVM style.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages