copying the column values of a Datatable into another data table in vb.net
-
Can anybody tell me how to copy one column of a data table to another data table. Example:I have 2 data tables say dt1,dt2. Here,i wanna copy only the 1st column values of dt1 into the 1st column of dt2.
-
Can anybody tell me how to copy one column of a data table to another data table. Example:I have 2 data tables say dt1,dt2. Here,i wanna copy only the 1st column values of dt1 into the 1st column of dt2.
Enumerate the DataRows in DT1, and copy the values into the appropriate field in DT2.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Enumerate the DataRows in DT1, and copy the values into the appropriate field in DT2.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008Hi Dave.. How are you? Thanks for your reply. Well, Don't you think this(Iteration) can create the performance issue/Usability issues?
-
Hi Dave.. How are you? Thanks for your reply. Well, Don't you think this(Iteration) can create the performance issue/Usability issues?
Well, the fastest option would be to have the database do it using SQL. But, if that's even possible lies in the lack of details you provided on the problem in your original post.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008