This is a discussion on How to copy data from one data table to another datable within the C# Programming forums, part of the Software Development category; How to copy data from one data table to another datable...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| while(sourceTable.Rows.Cout > 0) { sourceRow = sourceTable.Rows[0]; destRow = destination.NewRow(); destRow.ItemArray = sourceRow.ItemArray; destination.Rows.Add(destRow); sourceTable.Rows.Remove(sourceRow); } or foreach( DataRow dr in sourceTable.Rows) { destination.ImportRow(dr); } |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to rearrange the columns of the table without lose of data? | kingmaker | ASP and ASP.NET Programming | 1 | 02-21-2008 09:13 PM |
| Copy SQL data structures from one SQL server to another SQL server? | arjkhanna | Server Management | 5 | 11-05-2007 03:57 AM |
| Data integrity and Data validity | simplesabita | Software Testing | 1 | 10-30-2007 04:22 AM |
| What is the difference between global and action sheets within the data table in QTP? | sundarraja | Testing Tools | 1 | 08-13-2007 11:50 PM |
| What are the different problems that “Data mining” can solve? Data warehousing | oxygen | Database Support | 1 | 07-26-2007 04:37 AM |