You may need to take your PK and FK fields into account when copying.
'-- Copy the data into the temp BO loTemp.CopyDataFrom(SourceBusinessObject, StrataFrame.Business.BusinessCloneDataType.ClearAndFillFromDefaultView)
'-- Set the index to the temp BO loTemp.SeekToPrimaryKey(SourceBusinessObject.MyPK)
'-- Create a new row in the source BO SourceBusinessObject.NewRow()
'-- Cycle through the columns For Each loColumn In SourceBusinessObject.CurrentDataTable.Columns '-- Check for skipped fields If FieldsToSkip.Contains(loColumn.Columnname) Then Continue For End If
'-- Copy the data SourceBusinessObject.CurrentRow.Item(loColumn.ColumnName) = loTemp.CurrentRow.Item(loColumn.ColumnName) Next
'-- Clean Up loTemp.Dispose() End Sub
As for the problem with the row disappearing... there is a property called AutoNavigateToFirstBrokenRow; try setting it to false and see if that fixes your problem.