Is there a way to replace a datatable in a typed dataset?

D

Dave

Maybe I'm not going about this the right way. I have a dataset with 3
tables in it. I'd like to cache 2 of those data tables instead of the
whole dataset. What I thought I would do is create a typed datatable
and set it to the value of the cached datatable. Then, if it "is
nothing", I fill the datatable in the dataset. That all works fine.
The problem comes when it does find the data table. How do I replace
the empty datatable in the typed dataset with the one from the cache?

Thanks for your help.

Big Dave
 
D

David Browne

Dave said:
Maybe I'm not going about this the right way. I have a dataset with 3
tables in it. I'd like to cache 2 of those data tables instead of the
whole dataset. What I thought I would do is create a typed datatable
and set it to the value of the cached datatable. Then, if it "is
nothing", I fill the datatable in the dataset. That all works fine.
The problem comes when it does find the data table. How do I replace
the empty datatable in the typed dataset with the one from the cache?


Use DataSet.Merge to load the cached data into a new DataSet.

David
 

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,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top