Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2003, 10:47 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default copy datacolumn from one dataset to another

Hello,

I have two datasets with different data in them.

I want to (based on some criteria) move one column from one dataset to another.

However if I try a dataset1.tables(0).columns.add(dataset2.tables(0). column(someindex)) it says column already belongs to another table.

Can anybody help on this?

Thanks in advance.
 
Old July 25th, 2003, 12:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to NotNowJohn
Default

Try with
Code:
ds1.Merge(ds2,true,MissingSchemaAction.Add);
...but the Soon is eclipsed by the Moon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to copy n-row to another dataset? vinod_yadav1919 BOOK: Beginning C# 2005 Databases 1 November 12th, 2008 08:53 PM
How to copy n-row to another dataset? vinod_yadav1919 C# 0 November 12th, 2008 04:48 PM
DataColumn.Expression problem in Dataset designer shalan Pro Visual Basic 2005 2 October 5th, 2007 06:28 PM
Copy DataSet prasanta2expert ASP.NET 1.0 and 1.1 Professional 1 January 22nd, 2007 09:30 AM
Copy dataset to another dataset kapila VB.NET 2 November 13th, 2005 06:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.