Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to disable textbox in grid?
Message
From
09/12/2003 12:29:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to disable textbox in grid?
Miscellaneous
Thread ID:
00857285
Message ID:
00857285
Views:
63
I am trying to restrict access to a limited number of controls contained in a grid depending on the state of the containing form. Some of the cnotained columns shouldn't be accessible/modifiable while others should be.

Even though I set the ENABLED property of the column and the textbox to .f., I can still edit the information in the field.


this.Parent.grdpoline.grid.column1.text1.Enabled = .f.
This.Parent.grdpoline.grid.column1.txtinventorylu1.Enabled = .f.
this.Parent.grdpoline.grid.column2.text1.Enabled = .f.
this.Parent.grdpoline.grid.column3.txtQtyOrd.Enabled = .f.
this.Parent.grdpoline.grid.column4.txtDescription.Enabled = .f.

What am I doing wrong?

Thanks in advance,

Andrew
On a CLEAR day you can see forever.
Next
Reply
Map
View

Click here to load this message in the networking platform