DataView for objects: Implementation Part IV

Posted on October 22, 2006

Note: You can download the complete implementation here. In my last post I described the implementation of the IList interface in ObjectListView, my implementation of a view for collections of arbitrary objects.  The goal is to provide the same view capabilities for collections that DataView supports for DataTables. In this post, we'll move on to the next interface required for data binding, IBindingList. IBindingList This interface ...

Read More


DataView for objects: Implementation Part III

Posted on October 15, 2006

Note: You can download the complete implementation here. In my last post I described the implementation of the ICollection interface in ObjectListView, my implementation of a view for collections of arbitrary objects.  The goal is to provide the same view capabilities for collections that DataView supports for DataTables. In this post, we'll move on to the next interface required for data binding, IList. Positional list access The ...

Read More


DataView for objects: Implementation Part II

Posted on October 12, 2006

Note: You can download the complete implementation here. In my last post I described the implementation of the IEnumerable interface in ObjectListView, my implementation of a view for collections of arbitrary objects.  The goal is to provide the same view capabilities for collections that DataView supports for DataTables. In this post, we'll move on to the next interface required for data binding, ICollection. ICollection This ...

Read More


DataView for objects: Implementation Part I

Posted on October 10, 2006

In my last post, I described the .NET Framework support for views of collections of arbitrary objects.  In short, the required interfaces are provided, but no implementations.  In this post I'll describe what we need to do to roll our own view. In a nutshell, we need a view class that implements IBindingListView to wrap our collection of objects.  Our view will provide sorting and filtering, and neither of these operations will change the ...

Read More


DataView for objects: What’s in the box

Posted on October 9, 2006

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 ...

Read More