Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting a grid to read-only
Message
From
23/02/1998 19:16:55
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00080620
Message ID:
00080625
Views:
22
Hello Evan!

You can try:
thisform.grid.enabled=.t.
thisform.grid.column1.textbox1.enabled=.f.

or:
thisform.grid.readonly=.t.

BB

>I am using VFP 3.0b for Windows.
>
>I have started moving my forms to a system where the user does their editing in grids. I am doing this to simplify the UI for the user as well as to simplify the programming needed as well. One side effect of having editable grids is that the data is more volatile. A stray click or drag can change a data value (for novice users this is a problem).
>
>How can I (in a simple way) make the grid "read-only". I have tried setting grid.enable = .F. which is great, but also disables the scroll bars. Before I bark up the wrong tree is there a better way to do this?
>
>Note: what I want is to still allow the user to scroll through data values, but not be able to change data in text boxes and combo boxes in the grid until they enter edit mode (click an edit button or something). Clear as mud? :-)
Previous
Reply
Map
View

Click here to load this message in the networking platform