Data binding a hierarchy of lists of business objects

H

Havard Stranden

We are using data binding in our application, and are having trouble
finding out how to bind a hierarchy of lists of business objects.

What we have is this hierarchy:

List<Orders>
|
(Order)
|- List<Groups>
|
(Group)
|- List<Members>

We want to create a form where each of these lists is displayed in a
grid, and data is updated depending on what the user selects. The grids
cannot be nested. Can this be done?
 
H

Havard Stranden

Havard said:
We are using data binding in our application, and are having trouble
finding out how to bind a hierarchy of lists of business objects.

What we have is this hierarchy:

List<Orders>
|
(Order)
|- List<Groups>
|
(Group)
|- List<Members>

We want to create a form where each of these lists is displayed in a
grid, and data is updated depending on what the user selects. The grids
cannot be nested. Can this be done?

We found the solution: Use the master/detail pattern with nested
BindingSources for the grid hierarchy, and everything works. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top