CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Brendan Tompkins [MVP]

Blog First. Ask Questions Later.

Entity Collection View Class?

As I'm working more and more with Entity Classes and Collections of them, I'm running into some interesting problems.  I've been able to DataBind my classes to things like DataGrids, no problem, but I'm finding myself wishing there were such a thing as a CollectionView class.  This would function like a DataView class does for DataBinding controls to DataSets.  Basically, what I need is a bind-able object that I could associate with my Entity Collections with a Filter property that would serve to show a subset of the entities in my collection that matched my view - or er... just what a DataView does, but for collections. 

I have found a reference to System.ComponentModel.CollectionView, in the Longhorn SDK, but not sure if this is the same, and well, it's Longhorn.  Does anyone know if there's anything like this that can be used today?

-Brendan



Comments

Tim Weaver said:

I'd like to see something like this as well. In fact, while I'm asking <G> adding in Roy's <a href="http://weblogs.asp.net/rosherove/archive/2004/08/31/222948.aspx">binding wih attributes</a> stuff to it would really be slick.

I'm going to have to dedicate some time to both of these and see if I can come up with something that looks reasonable.
# August 31, 2004 9:40 AM

Brendan Tompkins said:

Nice Tim!
# August 31, 2004 9:47 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Brendan Tompkins

Brendan has been programming with .NET since the first public beta and is owner and operator of Port Technology Services, a consultancy company providing .NET application development services to the Maritime industry. In July, 2007, he was awarded the Microsoft MVP award for ASP.NET. He's also a proud co-founder of failed .COM startup Intrinsigo, and has had a hand in the failure of numerous other businesses. He currently runs CodeBetter.Com and Devlicio.us, and lives in Norfolk, Virgina with his wife Tiara and son Ian.

View Brendan's profile on LinkedIn

Check out Devlicio.us!

Our Sponsors

Free Tech Publications