Hi,
I'm trying to archive orginal records, so what I am trying to do is upon
saving the changed record also writing the orginal record version to a
different table. The problem I'm having is that the DataTable.ImportRow
does not accept a datarowview as a parameter. My code is below, can someone
please let me know how to get around this.. I realise I could iterate
through each colum and build a new datarow, but I'm assuming that there is a
better way.
DataView oDV = new DataView( dataSet1.mytable, "", "",
DataViewRowState.ModifiedOriginal);
foreach (DataRowView DRV in DV)
{
DataSetArchiveRecords oDSAR = new DataSetArchiveRecords();
oDSAR.ArchiveRecords.ImportRow(oDRV);
.........
}