>>>In a VFP grid, how can we carry out a row level validation as the browse...valid... in FP2.6? When BeforeRowColChange fires, there is no way to know whether the user is changing row or column. Checking the lastkey is not feasible because the column/row change may be caused by a mouse click.
>>
>>But you can catch row change using both BeforeRowColChange and AfterRowColChange.
>
>Edward,
>Thank you for your response. When AfterRowColChange fires, we have already moved into a new column (or row). The When event (may be irreversible) of the control in the new column (or row) has already been fired. Even new record may has aleardy been added.
Then you probably should rethink your algorithms and e.g. make validations, adding records,etc. in AfterRowColChange event.
Edward Pikman
Independent Consultant