Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking Grid Row
Message
From
11/01/2001 19:17:28
Liam O'Hagan
O'Hagan Programming Ltd
Ireland
 
 
To
11/01/2001 16:38:03
Eric Sedlacek
TTSS Interactive Products
Rockville, Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00462557
Message ID:
00462682
Views:
12
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
Previous
Reply
Map
View

Click here to load this message in the networking platform