Untyped DataSet cast into a Typed DataSet ?

  • Thread starter Jean-Francois Hamelin
  • Start date
J

Jean-Francois Hamelin

Hi,

I have an untyped DataSet object and a typed DataSet class, by design the
structures match, I want to cast!!! my untyped DataSet object into with my
typed
DataSet class. Can I do this, whitout having to manually copy the data
between the untyped to the typed ?

Thanks
JF
 
C

Chris Alm

I don't believe you can cast but you can user the Merge function of the
strongly typed dataset to get the data in there quickly. I believe it uses
the actual table and column names to do the merge so you might want to make
sure they match up.
 
J

Jean-Francois Hamelin

Thanks for the info.

Chris Alm said:
I don't believe you can cast but you can user the Merge function of the
strongly typed dataset to get the data in there quickly. I believe it uses
the actual table and column names to do the merge so you might want to make
sure they match up.
 

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

Top