Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Hello Mark.
>
>>> 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") <<
>
>Is the column's Sparse property set to False? It must be for DynamicCurrentControl to work properly. Also, the condition is only re-evaluated when you refersh the grid.
Sparse is set to False. My understanding was that DynamicCurrentControl is re-evaluated every time a row is changed. Is that right? Also I added grid.refresh into AfterRowColumnChange but it did not help.
Thanks Mark
Précédent
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