Modular extensions for the WPF DataGrid control
Перейти к файлу
M Gauthier a8b0e4aee7
Filtering complex content documentation (#110)
* Filtering and Sorting a Template Column

* text fix
2024-03-19 08:08:02 +01:00
.github Update FUNDING.yml 2020-03-30 19:31:07 +02:00
Assets Normalize directory structure 2020-08-31 17:34:33 +02:00
Documentation Filtering complex content documentation (#110) 2024-03-19 08:08:02 +01:00
docs Update API docu 2021-02-21 10:08:58 +01:00
signing Enable signing 2020-11-15 15:19:02 +01:00
src V 2.6.0 2023-12-22 15:06:28 +01:00
.gitignore Fix file links 2020-08-31 17:38:47 +02:00
CODE-OF-CONDUCT.md Add CODE-OF-CONDUCT, update README and License 2020-10-02 08:32:24 +02:00
Icon.png Add icon 2019-01-12 18:00:31 +01:00
License Add CODE-OF-CONDUCT, update README and License 2020-10-02 08:32:24 +02:00
README.md Fix typo 2023-01-03 16:42:22 +01:00
ReleaseNotes.md update release notes 2023-12-22 15:15:46 +01:00
UpdateNotice.cmd Add Notice.txt 2023-12-22 14:54:29 +01:00
appveyor.yml Prepare migration of build to azure-pipelines 2020-09-26 14:08:46 +02:00
azure-pipelines.yml Update azure-pipelines.yml for Azure Pipelines 2023-12-02 15:21:18 +01:00

README.md

Data Grid Extensions Build Status NuGet Status

Icon

Modular extensions for the WPF DataGrid control.

Code of Conduct

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.

.NET Foundation

This project is supported by the

.NET Foundation

Summary

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
  • Methods to easily implement Excel-like copy/paste

The binaries are available as NuGet packages.

Read the Documentation about how to use these features. The API Documentation describes the global API for DGX.

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 Project Configuration Manager projects that use the filtering extensions.

Powered by   ReSharper    

Support this Project: Donate