Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable controls in a Grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
Disable controls in a Grid
Divers
Thread ID:
00838656
Message ID:
00838656
Vues:
72
What is the best way to disable controls in a Grid that is based on CodeMines grid control. At runtime, depending on a value in the parent table the Grid needs to be readonly. Setting grd.Readonly = .T. only changes the background color. All the controls in the Grid that are based on CodeMine base classes are still editable. To get around this I either use Grd.SetAll() to set the lReadOnly property for the controls, or in another instance I set the lReadonly = .T. in the ShowControl of each control in the columns.

I would think there is a better way to handle this.

I am also surprised that VFP is letting me change the value when the Grid is Readonly.

I am using CM Version 7.1 and VFP 7 SP1.

Thanks
Tom
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform