Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select from one strongly typed dataset to another
Message
From
09/07/2011 12:11:06
 
 
To
09/07/2011 09:24:59
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01517609
Message ID:
01517811
Views:
56
This message has been marked as the solution to the initial question of the thread.
I guess I should have tested it before I posted it. Sorry Bill. There's another overload to that CopyToDataTable() method that *will* work (I tested it this time! <g>) and there's no casting necessary. The syntax is as follows:
// there are other LoadOptions also
ds1.MyTable.Select("x=y").CopyToDataTable(ds2.MyTable, LoadOption.OverwriteChanges);
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform