Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics 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 October 14th, 2009, 04:34 PM
Registered User
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need to copy datarow ??

Can anyone help ?

I need to copy a field for every datarow in one dataset to another dataset ?
 
Old October 1st, 2010, 07:49 AM
Authorized User
 
Join Date: Sep 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

dim drow1,drow2 as DataRow
dim j as integer=dt1.rows.count
dim i as integer = 0
while (i<j)
drow1=dt1.Rows(i)
drow2=dt2.Rows(i)
drow2("field")=drow1("field")
i+=1
end while





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a DataRow to a DataSet? jhansib4u ADO.NET 1 January 8th, 2008 09:36 AM
DataRow.ItemArray abhi123 C# 4 June 7th, 2007 02:33 PM
Need help understanding DataRow asp_convert ADO.NET 3 March 13th, 2007 02:39 PM
deleting a datarow sand133 VB Databases Basics 0 July 14th, 2004 07:08 AM
DataRow Vs Custom Class RM82 BOOK: ASP.NET Website Programming Problem-Design-Solution 2 April 3rd, 2004 06:01 AM





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