Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View Multiple Controls in a Grid
Message
De
26/03/2003 13:31:19
 
 
À
26/03/2003 13:15:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00770345
Message ID:
00770363
Vues:
11
>VFP 6 sp5. I have a grid that contains an 2 optionboxes. Based on a specific field in a table I want to change the current control for that row. I am able to do this if I set sparse to .t. and place the following code in the Gridbeforerowcolchange Event.
>thisform.grid1.column2.currentcontrol = IIF(TABLE.FIELD=.f.,"Opt2","Opt1")
>
>This works except the user can't see the optionbox until they click on the appropriate row. Is there any way to change the currentcontrol for a particular row and set sparse to false and display the appropriate optionbox for each row. Would I be better off just using 1 optionbox and then trying to change the labels on each row?
>
>Tia
>Rob

Checkout the columns DynamicCurrentControl property
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform