Thanks to visit codestin.com
Credit goes to github.com

Skip to content

workgroupengineering/DataGridExtensions

Repository files navigation

Data Grid Extensions

Modular extensions for the WPF DataGrid control.

This is a clone of https://datagridextensions.codeplex.com/

Binaries are available on NuGet

This package contains useful extensions for the WPF DataGrid (System.Windows.Controls.DataGrid). The current version supports the following features and behaviors:

  • Add filtering capabilities to the DataGrid.
  • Apply the initial sorting
  • Disable another control while in editing mode
  • Provide additional column events
  • Start editing a cell with Ctrl+Enter
  • Provide an extended star-size column behavior

Every feature is individually configurable.

This extension is

  • Easy to use
  • Easy to customize
  • Attaches to the existing DataGrid

Unlike many other free extensions this package does not introduce a new derived DataGrid class, limiting you a fixed set of features that you have to live with, but transparently attaches to the existing DataGrid, giving you the freedom to use exactly the feature you need, customizing them as you like, and combining them with other useful extensions.

Filtering is enabled by simply adding one attached property to your DataGrid:

<DataGrid ItemsSource="{Binding Items}" dgx:DataGridFilter.IsAutoFilterEnabled="True"/>

You will get a simple but efficient text or boolean filter, depending on the column type: Sample1

Every part is easily customizable by providing simple styles or templates:

<DataGridTextColumn Header="Double/Custom" Binding="{Binding Probability, Mode=OneWay}" dgx:DataGridFilterColumn.Template="{StaticResource FilterWithPopup}"/>

By overriding the default template you can simply create individual filters:

Sample2

For a full functional demo run the sample app or see the ResX Resource Manager or COM Registry Browser projects that use the filtering extensions.

Powerd by   ReSharper     CodeContracts 

Support this Project: Donate

About

Modular extensions for the WPF DataGrid control

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C# 99.9%
  • Batchfile 0.1%