Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo in Grid
Message
 
À
03/09/1999 06:39:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00261042
Message ID:
00261129
Vues:
22
>I put a combobox control in a column. I want disable interactive with the combobox (by keyboard, mouse) in normal mode. However, i want Enable input data in new records created with Append blank (grid's recordsource property = alias).
>How can i enable interactive with the combo in some rows and disable in other rows ?

Here is how to enable and disable all columns in the grid (like in the case of using an edit/save button).

thisform.grd1.setall('enabled',.F.,'column') && disable edit
thisform.grd1.setall('enabled',.T.,'column') && enable edit

To do this selectively you can do something like:
* disable edit
thisform.grd1.cl1.enabled=.F.
thisform.grd1.cl2.enabled=.F.
*enable edit
thisform.grd1.cl1.enabled=.T.
thisform.grd1.cl2.enabled=.T.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform