Copying DataRow

This is what I want to do:
I have 2 datasets. I want to copy a row from dataset1 to dataset two. The tables are identically named in both datasets.

If I use the ImportRow(dataRow), it throws an error when I am trying to retrieve what's in the row as:
No Column 0 (say I'm trying to retrieve 1st column).

If I use dataset2.tables(0).rows.add(datarow) it gives an error saying:
Row already exists in this table. (The names of the 2 tables are the same in the 2 datasets.)

How do I go about it?

-Saumil.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories