Hi Eric,
You could do something like this....
1) Create a logical form property such as lGridLocked (default .F.)
2) Put the following code in the WHEN event of the grid
Return !Thisform.lGridLocked
3) Whenever you want to lock the grid, simply change the form property's value to .T. (not forgetting, of course, to change it back to .F. when you want to unlock the grid)
HTH
Liam
>Does anyone know some mechanism or easy code for "locking" a grid so that the user cannot change rows until it is "unlocked".
>
>Thanks.
Liam O'Hagan
MCP VFP Desktop Apps