HighTechTalks DotNet Forums  

Converting a typed dataset to untyped dataset

Dotnet Data Tools microsoft.public.dotnet.datatools


Discuss Converting a typed dataset to untyped dataset in the Dotnet Data Tools forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dana L. Stille
 
Posts: n/a

Default Converting a typed dataset to untyped dataset - 08-10-2004 , 02:48 PM






I have a business logic object the is used to update a data source using an
untyped dataset that is passed to it. It is much easier and readable to use
a typed dataset in the UI portion of my code. There is no schema change
between the two datasets. What is the best way to convert a typed dataset
to an untyped dataset?



Reply With Quote
  #2  
Old   
Mike Labosh
 
Posts: n/a

Default Re: Converting a typed dataset to untyped dataset - 08-13-2004 , 11:59 AM






Quote:
I have a business logic object the is used to update a data source using
an
untyped dataset that is passed to it. It is much easier and readable to
use
a typed dataset in the UI portion of my code. There is no schema change
between the two datasets. What is the best way to convert a typed dataset
to an untyped dataset?
What about this:

Dim ds1 As New MyTypedDataSet()
Dim ds2 As DataSet

ds2 = CType(ds1, DataSet)

--
Peace & happy computing,

Mike Labosh, MCSD
"(bb)|(^b{2})" -- William Shakespeare




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.