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 Datatables rows i want to put them in the oDTT datatables rows..
oDT is the datatable which has the rows.. and from oDT Datatables rows i want to put them in the oDTT datatables rows..
Code:
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)