Populating DataSet from two DataTables

R

Ron

I'm trying to build a heirarchial DataGrid. I've created
the two tables I need through some fun in a code behind
that runs through an Active Directory. I need to get these
two tables into a DataSet. Once they're in the DataSet I
can define the relationships, etc. Is this possible to
fill a DataSet from existing tables? (I wish I just could
some SQL, but it's not going to happen)
 
A

Alvin Bruney [MVP]

assuming you have the two datasets, which each contain a default table, you
can clone one table into the other dataset. since the table is the default
of the dataset, it will contain two tables in one dataset. or you can
manually loop thru the dataset, build out your table and add it to the
existing datatable, then add the datatable to the dataset. make sense?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,244
Members
46,839
Latest member
MartinaBur

Latest Threads

Top