Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01637249
Message ID:
01637253
Vues:
70
>>
>>The idea is to have two containers in the column - one for the row that has the focus, and the other one for the other rows
>>
>
>That's a cool idea. I'll try it out.

The combination of ideas seems to work really well and using 2 different controls really simplified the logic inside of the container control as I didn't need to make sure to hide/show controls based on focus.

I added a form method named GetRowControl that does something like this:
IF ThisForm.grdSample.ActiveRow = RECNO("cursorName")
   ThisForm.grdSample.Column1.ctrSample.cboSample.Refresh()
   ThisForm.grdSample.Column1.ctrSample.Update()
   
   RETURN "ctrSample"
ELSE
   ThisForm.grdSample.Column1.ctrSample_RO.cboSample.Refresh()
   ThisForm.grdSample.Column1.ctrSample_RO.Update()
   
   RETURN "ctrSample"
ENDIF
Then set DynamicCurrentControl to: ThisForm.GetRowControl()

The refreshes seem to be required as it wasn't showing the bound values without it.

Thanks - I appreciate it.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform