Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid (Again)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00197687
Message ID:
00197719
Vues:
25
>I am using the following code in the grid.refresh to have alternate white and green colors.
>
>THIS.SetAll("DynamicBackColor", ;
> "IIF(MOD(RECNO( ), 2)=0, RGB(255,255,255) ;
> , RGB(0,255,0))", "Column") && Alternate white and green records
>
>It works fine most of the time. However, the Recno() is not always sequencial (ex.: if I access with a different order).
>Is it possible to set the dyanamicbackcolor without relying on the record?

Try using Mod( This.RelativeRow, 2 ) = 0. This way the relative row will always be tied to the grid, and not the actual data source..
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform