|
-
Dec 8th, 2008, 05:44 PM
#1
Thread Starter
Junior Member
Databinding to a single object instead of a collection
Hello
I have read that deriving a class from BindingList(Of Type) and implementing the IComponent interface, allow us to bind a grid to a custom object collection at design time.
Now, I would like to know what is the necessary approach when the intention is to databind to a single object, not a collection.
For example, suppose that I have an Order object, which has a Lines Property that return a LineCollection object. The LineCollection correspond to the Detail of the Order and I should be able to bind it to a grid; and the object Order itself has properties of its own that I would like to bind to Textboxes, for instance. But I think that deriving Order from BindingList is an overkill; so what should I do?
Thanks a lot.
Report post as abusive
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|