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