Sample Code
For Each dr As DataRow In sourceTable.Rows
destinationTable.ImportRow(dr)
Next
But if the destination table have the same structure you can use this clone method copies the structure of the DataSet that including all datatable schemas, relations, and constraints.
Sample Code
Dim dsDestination As DataSet
' clone method copies the structure of the DataSet,
' including all datatable schemas, relations, and constraints
dsDestination = ds.Clone()
For Each dr As DataRow In ds.Tables(0).Rows
dsDestination.Tables(0).ImportRow(dr)
Next
vb.net sample code
Source: http://vbnetsample.blogspot.com/2007/11/copying-data-from-one-datatable-to.html
fax from email fax to email fax by email how to set up email how to get a email how to email pictures how to get an email how to hack email how to install audio hardware how to install kitchen cabinet hardware
ليست هناك تعليقات:
إرسال تعليق