I use a routine from this post http://forum.strataframe.net/Topic13603-6-3.aspx for duplicate a record. In one windows I have a Maintenance form, and after duplicate I manually remove text form some fields that must have differente information.
My problem is that in another Window I use a ListView, when users select a row can copy to a new record and then the edit form opens, but I need to exclude some fields than must contain new information
How do I exclude some fields from being copied?
... some other fields here
Me
Do you have some ideas?
Regards Everything is possible, just keep trying...
For Each bo As BusinessLayer in sourceBo.GetEnumerable() '-- Create the new row within the destBO destBo.NewRow()
'-- Cycle through the columns For Each colName As String in columnsToInclude destRow.CurrentRow.Items(colName) = bo.CurrentRow.Items(colName) Next Next
End Sub
This is just a quick sample and this code could be optimized. But this should get you going down the right path and may spark some ideas.