G
Guest
Picture the cut down scenario...
Say I have three datatables (Person, Address, Street) that are linked with
datarelation objects using the PK/FK associations...
Person
--------
PersonId {PK}
AddrId {FK}
Forename
....
Address
----------
AddrId {PK
StreetId {FK}
HouseName
....
Street
-------
StreetId {PK}
StreeName
How can I BIND a datagrid to the Person datatable to show all person rows
and include data from Parent table (HouseName from Address) and from the
parent table again (StreetName from Street) for each row.
Grid example
---------------
PersonId | Forename | HouseName | StreetName
_________________________________________
1 Bill billshouse York Street
2 Stan stanshouse York Street
3 Tom tomshouse New Street
etc
I know you can do the reverse. So for this scenario you could have a
hierarchical grid binding to the master datatable Street and working down to
the detail person but I don't want that.
Any help appreciated!
Say I have three datatables (Person, Address, Street) that are linked with
datarelation objects using the PK/FK associations...
Person
--------
PersonId {PK}
AddrId {FK}
Forename
....
Address
----------
AddrId {PK
StreetId {FK}
HouseName
....
Street
-------
StreetId {PK}
StreeName
How can I BIND a datagrid to the Person datatable to show all person rows
and include data from Parent table (HouseName from Address) and from the
parent table again (StreetName from Street) for each row.
Grid example
---------------
PersonId | Forename | HouseName | StreetName
_________________________________________
1 Bill billshouse York Street
2 Stan stanshouse York Street
3 Tom tomshouse New Street
etc
I know you can do the reverse. So for this scenario you could have a
hierarchical grid binding to the master datatable Street and working down to
the detail person but I don't want that.
Any help appreciated!