Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable grid
Message
From
15/02/2008 10:40:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01292813
Message ID:
01292980
Views:
18
>>I can't seem to be able to disable a Grid. When the user is editing data (in TextBoxes below the Grid), I want to avoid the user clicking on the Grid (so he doesn't select another record).
>>
>>I tried returning .F. in the Grid.When() Event, to set .Enabled = .F. for the Grid and even for all contained objects (with .SetAll()), but at runtime, the user can still click on the Grid; and although the user can't select any data, the first record of the underlying cursor invariably gets selected.
>>
>>Any ideas?
>
>I used to cover grid with transparent shape. This way you still would be able to scroll it.

Well, in this case I don't want the user to do ANYTHING with the grid, while there are pending changes.

In this case, my problem was a different one; the Grid was indeed disabled, but the Page.Click() fired, producing undesired results. I didn't notice this at first.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform