|This will require a value for the
DataGrid.DataMember property since
DataSet is an
IListSource implementation. If you don't, you'll see a
DataGrid with two collapsable (in the collapsed state) rows for each table. It won't give you a "flat" look, and most likely both tables will have different columns anyway.
A couple of other alternatives might be to merge the two tables together if you don't need to update an RDBMS with the changes to the
DataSet. You could also used a couple of
DataGridTableStyles (see the
DataGrid.TableStyles property for more information) to control the output of each table depending on the table name, although this won't show them simultaneously. You can programmatically switch from one table style to another hence showing both tables formatted how you want them.
-----BEGIN GEEK CODE BLOCK-----
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----