Child of many parents

P

PaulNaude

How do you assign a child datagrid which have more than one parent?

When you have a parent and child datagrid pair, you can assign the child
datagrid using:

DataSet11.Relations.Add("ParentChildRelationshipName", _
DataSet11.Tables("ParentTable").Columns("FieldName"), _
DataSet11.Tables("ChildTable").Columns("FieldName"))

DataGrid2.DataSource = DataSet11
DataGrid2.DataMember = "ParentTable.ParentChildRelationshipName"

BUT, now I have multiple parent datagrids, each with a relationship to one
child table. How do I set the DATAMEMBER property then?
 

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

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,773
Latest member
Kaybee

Latest Threads

Top