master-detail relation with object binding

P

Patrice Ongla

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.
 
L

Lee Gillie

Patrice said:
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.

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.
 
P

Patrice Ongla

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.
 
L

Lee Gillie

Patrice said:
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.

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

- Lee
 

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