Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting a grid to read-only
Message
De
06/03/1998 14:31:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00080620
Message ID:
00083100
Vues:
27
>>I had to do something similar with a grid that scrolled horizontilly. I wanted the user to see the data but not change so must have grid.Enabled=.T. Grid.SetAll(ReadOnly)=.T. wouldn't work on everything, especially comboboxes. I ended up setting each controls ReadOnly property to .F. individually. A pain, but the only way I could get it to go. HTH
>
>Colin,Terry:
>
>I found a simple way to do what I was looking for.
>
>thisform.grid1.setall('enabled',.F.,'column')
>
>It is really just a modification of what each of you said. There doesn't seem to be any need to leave one of the columns enabled.
>
>Just to let you guys know. :-)

with thisform.thisgrid
For i = 1 to .columncount
.columns[i],enabled = .T.
next i
endwith

Helpful?
Robin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform