I'm trying to pass a DataTable back from a function, and would like to incorporate it into another DataSet. This is my function:
Function GetData(...) as DataTable
I want to insert the table into a new dataset back in the caller (because I got to call 4 GetData() methods in different classes). I am having problems, because I can't use the notation
because it says the table belongs to another dataset. So I changed it to do
, but the Clone() method only clones the structure, so I lose the data, and you can't clone each row separately...