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
Divers
Thread ID:
00838656
Message ID:
00839757
Vues:
38
Thanks, But I need to have the grid readonly not disabled. The user still needs to be able to scroll which cannot be done when the grid is disabled.

The base VFP controls does not allow the modification of data in the grid that is readonly. I do not understand why this is happending. I assume VFP is doing some internal work to change the readonly property and then codemine changes it after. Oh well.

Thanks
Tom

>Hi Thomas,
>
>Look at thread #788677.
>
>Alex
>
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform