This.SetAll( 'DynamicForeColor', ; 'IIF( RECNO( This.RecordSource ) = This.nRecNo, RGB( 0, 0, 128 ), RGB( 0, 0, 0 ) )', 'COLUMN' ) This.SetAll( 'DynamicBackColor', ; 'IIF( RECNO( This.RecordSource ) = This.nRecNo, RGB( 255,255,0 ), RGB( 255, 255, 255 ) )', 'COLUMN' )In AfterRowColChange, store RECNO( .RecordSource ) to .nRecNo and refresh the grid.