Hi Marty McDonald,
Thanks for using Microsoft NewsGroup Services. Based on your description,
you want to copy a DataTable in one DataSet into another DataSet( not only
the structure but also with the datas) so as to do some operations on the
new copied DataTable. Is my understanding of your problem correct?
If so, I think Ken Cox's suggestion is good, you may try the DataTable's
copy method which will generate a same DataTAble as the origianl one with
not only structure but datas as well. Such as :
[Visual Basic]
Private Sub CopyDataTable(ByVal myDataTable As DataTable )
' Create an object variable for the copy.
Dim copyDataTable As DataTable
copyDataTable = myDataTable.Copy()
' Insert code to work with the copy.
End Sub
[C#]
private void CopyDataTable(DataTable myDataTable){
// Create an object variable for the copy.
DataTable copyDataTable;
copyDataTable = myDataTable.Copy();
// Insert code to work with the copy.
}
Please try out the suggestion. If you have any question on it ,please feel
free to let me know.
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)