>>>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.
>>Ben,
>>
>>Use the table level validation rule in the database, if you must allow editing in your grid.
>
>Jim,
>
>Thank you very much for your good suggestion. But validation rules are not flexible enough and do not apply to views and free tables. Is there any other way to emulate a row level validation in grids?
Ben,
You might try this. You will still use the BeforeRowColChange event to fire your validation, however, have a look at the Grid.ActiveRow property. But do excercise caution. It may not return the same row number as would be returned by RECNO() in an indexed table.
Sanjay Kapoor
Relatively speaking is a conversation with Einstein