I am working on retrieving the entered values for a DataGrid row using the EditCommandColumn. Functionally, all the events work well (onEdit, onCancel, and onUpdate). The problem I am having is getting the updated values the client enteres. The code is only using the existing values. I have been following the discussion at and using the line:
dim NGenerator as string = CType(e.Item.Cells(2).Controls(0),TextBox).Text 'updated generator
to get the new value, but this has only been returning the old value. I then go on to use NGenerator in an update statement that executes without a problem updating the old values to the old values and the clients changes are gone.
I am not sure what I am missing.
Terry
dim NGenerator as string = CType(e.Item.Cells(2).Controls(0),TextBox).Text 'updated generator
to get the new value, but this has only been returning the old value. I then go on to use NGenerator in an update statement that executes without a problem updating the old values to the old values and the clients changes are gone.
I am not sure what I am missing.
Terry