DataView for objects?

Posted on October 8, 2006

I've often wanted something like the DataView for a collection of my own data objects. DataView allows you to present a sorted, filtered subset of the rows in a DataTable, without actually changing the underlying table.  You can bind two DataViews of the same table to two different Windows Forms controls, using a different sort and filter in each.  Very groovy. Unfortunately, DataView only provides this goodness for the DataTable class. ...

Read More


DataSet Visualizer for Visual Studio 2005

Posted on December 12, 2005

I work with DataSets quite a bit, and I'm a fan of the DataSet visualizers that were available for VS 2003.  The DataSet QuickWatch and the XML Visualizer were two that I used a lot.  In particular, XML Visualizer allowed you to display all of the different data versions available in a DataRow. Visual Studio 2005 ships with a DataSet visualizer, but it doesn't make all of the row versions available, nor does it show the row state.  So, I ...

Read More


WinForms Databinding, Part II: Format & Parse

Posted on November 14, 2005

In my last entry, I described the .NET 1.1 simple data binding mechanism: an object property is bound to a control property, and a change in either the object property value or the control property is reflected in the other.  Today, I will describe what happens when these two properties are of different types. For the following discussion, assume an Invoice class with an integer Amount property.  The Amount property of an Invoice is bound ...

Read More