Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to have certain rows read-only in a grid?
Message
De
16/08/1999 15:16:02
 
 
À
16/08/1999 13:36:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00254148
Message ID:
00254215
Vues:
20
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform