I need to make the RowState of all the rows of a certain DataSet "added", so I decided to add them one by one to a new DataSet, but apparently C# does not allow you to add to a new DataSet a row that already belongs to an existing one, I've tried tosolve this problem in more than 10 ways (by clearing the dataset, or putting the rows in an object array ...etc), but the problem remained the same........
The last way that I've tried to do it is as follows:
private DataSet RowInsertedDS(DataSet ds)
DataSet ds2 = new DataSet();
ds2 = ds.Clone();
int count = ds.Tables.Rows.Count;
ArrayList dr = new ArrayList();
Object dr2 = new Object[count];
The problem still occured (in the code above) in the before last line of code (inside the last for loop)....any help on solving the problem??