M
MichalR
Hi all,
I just managed to make "quasi-join" in the dataset (for displaying it in
Windows Forms datagrid):
Dataset1.Relations.Add("MyRelation",Table1.Id,Table2.T1Id)
Dataset1.Tables!Table2.Columns.Add("ParentValue", _
GetType(String),"Parent(MyRelation).Value")
Now I have a new problem: the parent table has another Parent, and I
need to display one of its fields (Table3.Value2)
Table3.Id <--> Table1.T3Id, Table1.Id <--> Table2.T1Id
I've tried this:
Dataset1.Relations.Add("MyRelation2",Table1.T3Id,Table3.Id)
Dataset1.Tables!Table3.Columns.Add("ParentValue2", _
GetType(String),"Parent(MyRelation).Parent(MyRelation2).Value2")
But it causes nothing but an exception.
Any ideas?
Michal.
I just managed to make "quasi-join" in the dataset (for displaying it in
Windows Forms datagrid):
Dataset1.Relations.Add("MyRelation",Table1.Id,Table2.T1Id)
Dataset1.Tables!Table2.Columns.Add("ParentValue", _
GetType(String),"Parent(MyRelation).Value")
Now I have a new problem: the parent table has another Parent, and I
need to display one of its fields (Table3.Value2)
Table3.Id <--> Table1.T3Id, Table1.Id <--> Table2.T1Id
I've tried this:
Dataset1.Relations.Add("MyRelation2",Table1.T3Id,Table3.Id)
Dataset1.Tables!Table3.Columns.Add("ParentValue2", _
GetType(String),"Parent(MyRelation).Parent(MyRelation2).Value2")
But it causes nothing but an exception.
Any ideas?
Michal.