Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grids and DynamicCurrentControl
I am experimenting with grids and DynamicCurrentControl. I am using two containers with a text box inside as a column’s current controls. Both text boxes have ControlSource set to “cursor.field”.
In form’s Init I have:
Thisform.grid1.column1.DynamicCurrentControl = 'iif(ThisForm.lnRecNo = RECNO("cur1"), "cnt11", "cnt12")'
In Grids’ AfterRowColumnChange I have:
ThisForm.lnRecNo = RECNO("cur1")
A text box in cnt11 has yellow background. I am clicking on different rows and don’t see any yellow color. So DynamicCurrentControl does not work for me here. Now, if I add:
Thisform.grid1.column1.DynamicCurrentControl = 'iif(ThisForm.lnRecNo = RECNO("cur1"), "cnt11", "cnt12")'
To AfterRowColumnChange then I see yellows. Unfortunately, because I need more columns then one, last statement is screwing everything up and a second column wont work completely. Anybody has an idea?
Thanks, Mark
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