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

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top