Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlighting Rows in Grids
Message
De
01/11/1999 20:17:27
 
 
À
01/11/1999 19:41:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00285186
Message ID:
00285206
Vues:
19
>Is it possible to Highlight the entire Active row of a grid in a different color than the normal background color?
>It would be very useful in locating the current record in a long list.
>Its difficult to see what record your on when all you have is the Record mark to go by. Any suggestions? Work arounds?

The common strategy here is to add a property to your grid class called CurRec or something.

THen, in the afterRowColChange event:

THIS.CurRec = RECNO(THIS.RecordSource)

Then, all oyu need is to use the DynamicBackColor property to change the color. You can set it for the entire grid in the init:

THIS.SetAll("DynamicBackColor","IIF(THIS.CurRec=RECNO(),255,16777215)","Column")
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform