I got this to work by modifying the underlying datatable, I would rather use the BO field properties.Background on the why: I have a need to convert VFP tables to SQL, the target structures will be a moving target so I came up with a system that allows you to map VFP fields to SQL fields, and apply any conversion rules that need to be applied. These mapping rules are stored in a table so they can be modified and re-run as many times as needed as the process evolves and the target tables structures change.
For Each row_conversionrule As BUSINESS.bo_mapfields In Me.Bo_mapfields.GetEnumerable()Dim sqlField As String = row_conversionrule.mapf_sqlfieldDim s As ObjectDim vfpField As String = row_conversionrule.mapf_vfpfieldDim v As Objects =
Me.Bo_consignee1.Item(sqlField)v =
Me.Vfpbo_consig1.Item(vfpField)s = v ' only changes the string object values, not the BO field value
'workaround below
Dim x As DataTable = Me.Bo_consignee1.CurrentDataTableDim y As DataRow = x.Rows.Item(bo.CurrentRowIndex)y.Item(sqlField) = v
Next