gqstud79 Posted November 18, 2002 Posted November 18, 2002 (edited) Can anyone tell me how to add multiple tables to a dataset? I'm having all kinds of problems trying to figure it out. Thanks Edited November 18, 2002 by gqstud79 Quote
*Experts* Bucky Posted November 18, 2002 *Experts* Posted November 18, 2002 First you need to create a new table to add, then all you need to do is add that table to the DataSet's Tables collection, using its add method. Here ds is the dataset: Dim dtMoo As New DataTable("Moo") ds.Tables.Add(dtMoo) Then dtMoo will be one of the DataSet's tables, and you can access it by an index, its name, or the DataTable instance itself (dtMoo). You can add as more tables to the DS using this same method. [edit]Fixed up some stuff[/edit] Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
robertsams23 Posted January 13, 2009 Posted January 13, 2009 multiple tables in dataset , click the following link http://vb.net-informations.com/dataset/dataset-multiple-tables-sqlserver.htm robert. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.