Home All Groups Group Topic Archive Search About
Author
15 Mar 2006 1:20 AM
Ant
Hi, this is not a one to many question but a many to one problem:

If I have 'one category can have many products but one product can only fit
into one category',  the relationship 'namespace' would be:

Categories.CategoriesProducts.ProductFields

If I want to navigate through each category & display all products in each
category,  I would reference the BindingContext object datamember to
Categories & set the DataBindings of the control to display the Parent field
to:

Categories.CategoryField

& the DisplayMember of the control to display the child fields to:

Categories.CategoriesProducts.ProductField

But

If I want to navigate via the Products, I would reference the BindingContext
object datamember to:

Products

but then how do I display the category for the current product?

I hope this is clear

Many thanks in advance
Ant

AddThis Social Bookmark Button