I am looking for an easy way to make a DataRow clone. This is similar to capturing this line and saving it. The values โโof the original Row can then be changed, but we have another saved copy that does not change. Is this the right way to do this?
DataRow Source, Destination; //Assume we create some columns and fill them with values Destination.ItemArray = Source.ItemArray;
Will this only point to the Snapshot ItemArray link to what the source in the source points to, or is it really making a separate copy? Should I do this instead?
Destination.ItemArray = Source.ItemArray.Clone();
EDIT: I don't think the second piece of code really compiles.
c # datatable datarow
Paul Matthews Aug 19 2018-12-12T00: 00Z
source share