IF INLIST( This.RowColChange, 1, 3 ) *** The row has changedIf you are in a version of VFP earlier than 7, you need a little more code to do this. You need to store the RECNO() of the current record in the grid's RecordSOurce to a grid property in the grid's BeforeRowColChange() like this:
This.nCurRec = RECNO(.RecordSource)And then compare the value in the grid's nCurRec property to RECNO( this.RecordSOurce ) in the grid's AfterRowColChange. If the two are different, the user has changed rows.