Code Monkey home page Code Monkey logo

datagridextensions's Introduction

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.

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

datagridextensions's People

Contributors

tom-englert avatar mjuen avatar grizoood avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.