Copying Rows from a DataSet

  • Thread starter Thread starter Brad
  • Start date Start date
B

Brad

Is there an easy way to copy rows from one data set to another other than
field by field copy?

Thanks

Brad
 
Did you try selecting rows with a DataView and then using the Clone or Copy
methods?
 
Brad,

I think that this needs a short explanation.

A datarow is an object from the datatable, that uses one other object (the
Columns) from its table to describe what is in it. Therefore as you don't
have the table, you have in fact nothing. The reference to that table is in
the datarow and you cannot reference one row to more tables.

I think therefore that mostly an easier way is to copy the table and than to
remove the rows you don't need.

Cor
 
Bill,

Thanks for your suggestion. The DataView was a good solution to my problem.
What I really needed was a way to filter on a table for reporting purposes.

Brad
 
Cor,

Thanks for the explanation. It helped highlight my problem. I used Bill's
suggestion to create a filtered data view to get the data from my DataSet.

Brad
 
Back
Top