Use
messagebox(Eval(thisform.grdTKey.column1.text1.controlsource))
messagebox(Eval(thisform.grdTKey.column2.text1.controlsource))
Only the value of the control in the current cell is updates.
>Hi,
>
>I've got a grid with two columns. I have a command button that has
>
>messagebox(thisform.grdTKey.column1.text1.value)
>messagebox(thisform.grdTKey.column2.text1.value)
>
>It works fine the first I click the command button, but not the second time. If I move to a different record and click the command button the column1 value is correct, but the column2 value hasn't been updated.
>
>Any ideas? Using vfp 5
>
>thanks,
>Chris
--sb--