sony Posted October 26, 2005 Posted October 26, 2005 can someone tell me how i can add rows from one datatable to another.. ahh i have been on this for like ages..this aint working for me..i keep on getting this row belongs to another table...thanks in advance oDT is the datatable which has the rows.. and from oDT Datatable's rows i want to put them in the oDTT datatable's rows.. Dim dgRow As DataRow dgRow = oDTT.NewRow() Dim os As DataRow For Each os In oDT.Rows dgRow = os dgRow(intcount) = os Next oDTT.Rows.Add(dgRow) Quote
bri189a Posted October 27, 2005 Posted October 27, 2005 Or if you're simply looking to move the row you could do Table.ImportRow Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.