PC Review


Reply
Thread Tools Rate Thread

Data binding a hierarchy of lists of business objects

 
 
Havard Stranden
Guest
Posts: n/a
 
      19th Jan 2007
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?

 
Reply With Quote
 
 
 
 
Havard Stranden
Guest
Posts: n/a
 
      19th Jan 2007

Havard Stranden wrote:
> 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.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about data binding from Custom Business Objects toDataGridView when null values are involved. Best Practices? Dave Microsoft ADO .NET 0 24th Nov 2008 06:41 AM
Binding to Business Objects and Generic List ME Microsoft C# .NET 5 6th Jun 2006 03:59 AM
Binding complex Business Objects Stefan Siebenberg Microsoft ASP .NET 1 2nd Apr 2006 09:11 PM
Binding DataGrid to an hierarchy of objects - problem with Stylesat the bottom of the hierarchy Terentius Neo Microsoft C# .NET 0 28th Aug 2005 01:35 PM
100% Free MS Access .NET Code Generator (tired of hand cranking business objects/data objects) ? MyGeneration Microsoft Access 0 27th Jan 2005 04:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:15 AM.