master-detail relation with object binding

master-detail relation with object binding

Post by Patrice On » Sat, 26 Feb 2005 21:43:30


Hi all,

In Whibdey, I have a form bound to one of my business object. This object
has a collection of child object of another class.

Does anyone know how to create a master-detail relation between this form
and a grid in it which is bound to te dataconnector of the child class ?

Hope i'm clear enough...

Thanx in advance.
 
 
 

master-detail relation with object binding

Post by Lee Gilli » Sat, 26 Feb 2005 22:08:53


Yes, I think it is IList for the master, and IEditable for the detail,
then you can bind. There are examples out there. You won't need the
dataconnector if you have in-memory business objects.

 
 
 

master-detail relation with object binding

Post by Patrice On » Sun, 27 Feb 2005 02:24:20

Thanx. But that's even simplier with Whidbey as you don't have to worry
about those interfaces. But if you work less, you see less also. So I don't
see where I have to put my code to get this master detail link.


% XXXX@XXXXX.COM ...
 
 
 

master-detail relation with object binding

Post by Lee Gilli » Wed, 02 Mar 2005 22:33:45


I don't have Whidbey, but I recall I simply provided a collection on
each IList element.

- Lee