Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
View Multiple Controls in a Grid
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement