J
Jim Heavey
Hello, I have tried a couple of techniques and the ones I have tried have
failed and the ones that work, I don't like, so I thought I would see if there
is a better way of doing this.
I am attempting to copy a variable number of records in a dataview, change the
"keys" to a new value and insert those new records back into the underlying
DataTable.
I have attempted to create a DataView of the records that I am interested in
and looping through those records using a "For Each/Next Loop", but after the
first update is made I get an error message indicating that the collection has
been modified and I an unable to use enumeration". The only technique I have
found was to create a array of rows, and place reference to each row in this
array and then loop through the array and copy the record and insert back into
the underlying table. There must be a better way....Is there?
failed and the ones that work, I don't like, so I thought I would see if there
is a better way of doing this.
I am attempting to copy a variable number of records in a dataview, change the
"keys" to a new value and insert those new records back into the underlying
DataTable.
I have attempted to create a DataView of the records that I am interested in
and looping through those records using a "For Each/Next Loop", but after the
first update is made I get an error message indicating that the collection has
been modified and I an unable to use enumeration". The only technique I have
found was to create a array of rows, and place reference to each row in this
array and then loop through the array and copy the record and insert back into
the underlying table. There must be a better way....Is there?