G
Guest
Hi all - I was wondering what would be the best way to implement a
hierarchical structure so that I can use it in databinding.
Here's my situation: We are building a windows form app, and we are not
using DataSets. I have various business entities, and custom collections
(and these collections are bindable).
What I would like to do is to create a hierarchy of these business entities.
I'd like to keep the hierarchical relationships separate from the entities
themselves. My ideal object will be a Generic, and each instance will
contain only a single entity type. I would like to retrieve the entities and
their relations from the database, and then pass them to the UI which will
then databind to it. We're using Infragistics controls, if it matters.
I'm curious as to what interfaces I need to implement to ensure that I can
databind in a way that will allow the UI to view the hierarchy of entities
w/o having to actually parse the tree and insert the appropriate nodes. I've
yet to see an example. Can anyone point me in the right direction?
Thanks!
Phil
hierarchical structure so that I can use it in databinding.
Here's my situation: We are building a windows form app, and we are not
using DataSets. I have various business entities, and custom collections
(and these collections are bindable).
What I would like to do is to create a hierarchy of these business entities.
I'd like to keep the hierarchical relationships separate from the entities
themselves. My ideal object will be a Generic, and each instance will
contain only a single entity type. I would like to retrieve the entities and
their relations from the database, and then pass them to the UI which will
then databind to it. We're using Infragistics controls, if it matters.
I'm curious as to what interfaces I need to implement to ensure that I can
databind in a way that will allow the UI to view the hierarchy of entities
w/o having to actually parse the tree and insert the appropriate nodes. I've
yet to see an example. Can anyone point me in the right direction?
Thanks!
Phil