DataView for objects: What’s in the box
In my previous post I made the case for having a DataView-style construct for collections of arbitrary objects. In this post, I'll review what you can (and can't) do to achieve this with the built-in .NET 2.0 Framework classes. View vs. Collection First, why use a "view" rather than just a collection? For the same reason we would use a DataView rather than a DataTable. Let's say we want to present some customer data in a DataGridView ...
DataView for objects?
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. ...