Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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)        

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...