partsBO1.CurrentRow[mCol] = mCurrentPart.CurrentRow[mCol.ColumnName];
Sorry...I am a bit confused. A DataRow object doesn't have a CurrentRow property, does it? I'll try using the CurrentRow of the BO to see if that makes a difference.
partsBO1.CurrentRow[mCol] = mCurrentPart[mCol];
I changed just the BO side per your earlier suggestion. It seems to work just fine. I do have the second half looking like this, though:
mCurrentPart[mCol.ColumnName]
I am assuming that ColumnName is the default property to DataColumn object. So leaving it there or removing it won't matter, eh?
Hi Trent,
I am looking for the same functionality here but in VB, was this added to SF?
If this isn't what you are looking for then you might elaborate on what functionality you are trying to implement.
Yes I am referring to the following code:
'-- Save off the current rowDim copyRow As DataRow = MyBo.CurrentRowMyBo.NewRow()'-- Now update each of the columns within the new row. You may want to test' on certain column names to be excluded, such as PK fields.For each col as DataColumn In MyBo.CurrentDataTable.Columns MyBo.Items(col.ColumnName) = copyRow.Item(col.ColumnName) Next
'-- Now update each of the columns within the new row. You may want to test' on certain column names to be excluded, such as PK fields.For each col as DataColumn In MyBo.CurrentDataTable.Columns MyBo.Items(col.ColumnName) = copyRow.Item(col.ColumnName) Next
I just wanted to know if it was added to the framework so I could use it. I have several address fields which could use this approach to be updated from an existing record.
Public Shared Function CopyRecord(ByVal sourceRow As DataRow) As DataRow '-- Add the logic from the previous post here with your "tweaks" End FunctionEnd Class
End If
In the above code I am using a method EditChildRecord() that I created from the source code of the listview, which I requested an enhancement to make this method public or shared here http://forum.strataframe.net/Topic19108-9-1.aspx for this kind of functionality. I am not including my version here since I hope it will be made available to use in the framework.
Thanks for your commentes. Can you post a sample of how to make the EditChildRecord?
Regards Everything is possible, just keep trying...