Thanks for the reply MajorTom,
I may not have explained it well, and BTW I should have meantioned I am
using C#.
YourTypeDataSetClass.tablenameRow yourNewRecorsRow;
yourNewRecorsRow =
(YourTypeDataSetClass.tablenameRow)YourTypedDataset.table[pos];
I think this just gives me a reference pointer to the record in the
dataset.
It doesn't actually copy the record. IE, if I make changes to
'yourNewRecorsRow', it will change the record in the dataset also.
I need to make what I think is called a 'deep copy' so I can change
'yourNewRecorsRow' without affecting the original data in the dataset.
For now, I have been doing this:
YourTypeDataSetClass.tablenameRow yourNewRecorsRow =
(YourTypeDataSetClass.tablenameRow) YourTypeDataSet.tablename.NewRow();
yourNewRecorsRow.Field1 = YourTypeDataSet.tablename[pos].Field1
yourNewRecorsRow.Field2 = YourTypeDataSet.tablename[pos].Field2
.... etc
With the problem being that if I add a field to the dataset, I have to
keep
these 'cloning' routines in sync. There has to be some kind of 'deep'
record
copy ability somewhere.
Thanks for answering.
Wayne