Scott Logic Ltd

Archive For "DataGrid" Tag

Binding a Silverlight 3 DataGrid to dynamic data via IDictionary (Updated)

Colin Eberhardt, March 26th, 2010

In this post I demonstrate a method for binding a Silverlight 3 DataGrid to dynamic data, i.e. data which does not have properties that are known at design time. This technique results in a bound grid which is sortable and editable. This blog post is a…

Read More


Binding a Silverlight DataGrid to dynamic data Part 2 – editable data and INotifyPropertyChanged

Colin Eberhardt, April 22nd, 2009

UPDATE: This blog post was written with a SL2 DataGrid, for SL3, please see my updated blog post. In my previous blog post I described a method for solving the commonly faced problem of binding a Silverlight DataGrid to dynamic data, the form of which …

Read More


Binding a Silverlight DataGrid to dynamic data via IDictionary

Colin Eberhardt, April 17th, 2009

This post demonstrates a technique for binding a Silverlight DataGrid to dynamic data, the structure of which is not know at compile-time … UPDATE #1: I have extended this technique to add include change notification so that the DataGrid can be m…

Read More


Styling hard-to-reach elements in control templates with attached behaviours

Colin Eberhardt, February 10th, 2009

OK, the title of this blog post is not very snappy, but it is not an easy problem to describe in a few short words. Here’s the rub, the WPF DataGrid has a select-all button located in the top-left corner, just like Excel and many other grid contr…

Read More


WPF DataGrid – Committing changes cell-by-cell

Colin Eberhardt, January 21st, 2009

In my recent codeproject article on the DataGrid I described a number of techniques for handling the updates to DataTables which are bound to the grid. These examples all worked on the assumption that you want to keep your database synchronised with th…

Read More


WPF DataGrid – detecting the column, cell and row that has been clicked

Colin Eberhardt, December 2nd, 2008

The WPF DataGrid is a very flexible tool, however in its current state certain simple tasks can prove to be rather tricky. A fairly common task when working with DataGrid is detecting which row, or cell a user has clicked on, or whether they clicked a …

Read More


Multiselect DataGrid with CheckBoxes

Colin Eberhardt, November 26th, 2008

I am currently very interested in the new WPF DataGrid which was released on codeplex recently. Someone posted an interesting question in the codeplex forums asking about whether it would be possible to configure the DataGrid so that a user can make mu…

Read More

© 2013 Scott Logic Ltd. All Rights Reserved.