>>Hello,
>>
>>I am using a grid for dataentry. In order to update some properties, I like to use code in the event AfterRowColChange() in the grid.
>>
>>But I found out that in AfterRowColChange() the record pointer in the table did not change yet, it is still at the old record.
>>
>>Is there a way around that?
>>
>>Thanks for your help in advance.
>
>Are you sure? Do you have a reproduction code?
>Cetin
You are right, there was something wrong in the code: I checked RowColChanged, whether it is 1 or 3, which means the row "changed".
IF INLIST(.RowColChanged,1,3)
THISFORM.RecordKey = MyTale.MyUniqueField
ENDIF
But this description is misleading: The AfterRowColChanged() fires after the fact with RowColChanged = 0.
So I removed the IF and now it works.
Thanks again for your time.
Christian Isberner
Software Consultant