G
Guest
I’ve read a number of article/books on ADO.NET and the DataGrid and nobody
seems to address displaying multiple tables at once (not master/detail).
I’ve got two tables that have a 1-1 relationship based on a primary key.
Basically, think of it as one logical record (Customer) with some data in
table 1 and other data in table 2. I have these loaded into a DataSet and I
have a relation defined between them.
However, I cannot find any way to make the DataGrid display data from both
tables at the same time. I want to see the following:
Name Address
John 663 Main
Sally 223 Oak
…
Where Name is coming from table 1 and Address is coming from table 2.
Is this possible with the DataGrid control(s)? (I can certainly look at
writing a custom display control but I’d hate to reinvent the wheel)
seems to address displaying multiple tables at once (not master/detail).
I’ve got two tables that have a 1-1 relationship based on a primary key.
Basically, think of it as one logical record (Customer) with some data in
table 1 and other data in table 2. I have these loaded into a DataSet and I
have a relation defined between them.
However, I cannot find any way to make the DataGrid display data from both
tables at the same time. I want to see the following:
Name Address
John 663 Main
Sally 223 Oak
…
Where Name is coming from table 1 and Address is coming from table 2.
Is this possible with the DataGrid control(s)? (I can certainly look at
writing a custom display control but I’d hate to reinvent the wheel)