Sahil
Wed Oct 05 23:19:53 CDT 2005
If you want a single datatable driven out of two database tables, the best
way to do that is to simply execute a join query on the database.
If you wish to combine two datatables to give you one single datatable, the
best way to do that is to iterate over values of both tables and use the
LoadDataRow method.
- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx
----------------------------------------------------------------------------
"Peter" <Peter@discussions.microsoft.com> wrote in message
news:BA3B8586-EE2B-4427-8EAA-D5520069228D@microsoft.com...
> in ADO.net 2.0 beta 2
> I know how to do the parent-child type.
> 1. drag a DataGrid control in a window form, get a datasource from
> table cust.
> 2. drag table cust onto the DataGrid.
> 3. in the data window, right-click the dataset, select configure..
> adding table o.
> 4. drag the child table onto the DataGrid control.
> comment: With this way, I build this without a coding. I believe it is
> MVC style.
> I do not know the steps to join two relational tables into one ADO
> table.Please advise. Thanks.
> Peter