Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Another quest, to get fancy, I implemented the following:
>thisform.grid1.SetAll("DynamicBackColor", ;
>"IIF(MOD(RECNO( ), 2)=0, RGB(255,255,255) ;
>, RGB(0,255,0))", "grid1") && Alternate white and green records
You might wanna specify which alias teh "RecNO()" applies to. Like Brad said, the "grid1" is wrong, look in the help file, it will tell you SetAll() needs a class, the example used "Column" as teh third parameter.
Finally, refresh() the grid right after this (unless the form isn't visible yet, then it will eventully be refresh implicitly).
Précédent
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