Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to have certain rows read-only in a grid?
Message
From
16/08/1999 15:16:02
 
 
To
16/08/1999 13:36:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00254148
Message ID:
00254215
Views:
19
Hi, Denis.

One more idea.

You can put in each column of your Grid two similar objects,
f.e. TextBoxEnable & TextBoxDisable based on FoxPro base class TextBox.
This two classes has different value of Enabled property.

In the AfterRowColChange method you must write:
If _YourSpecialField = .T.
ThisForm.Grid1.Column1.CurrentControl = "TextBoxEnable"
Else
ThisForm.Grid1.Column1.CurrentControl = "TextBoxDisable"
Endif

In addition you may set some properties different,
f.e. TextBoxDisable.BackColor = rgb(0, 0, 0) and you get not only
ReadOnly control but two records looking different!
Regards,
Dmitri Alexandrov
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform