Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Grid HighlightBackColor dynamically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Changing Grid HighlightBackColor dynamically
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01253689
Message ID:
01253689
Vues:
74
I've got a grid which has AllowCellSelection set to .F., HiglightStyle set to 2, and I set the DynamicBackColor to change between white and green depending on whether a date is filled in in a field of the current record that the grid is bound to. This works OK.

The only problem with the above is that if I've set a record to the green background you can't tell when that record has focus (it's set to the HighlightBackColor). I've tried adding code to the AfterRowColChange event to change this dynamically, but it seems to only work the very first time (and then it's "stuck" on that color, so every record I select uses that same color). I've run into this in the past and I've ended up doing things like shutting off AllowCellSelection and using the "old style" grid highlight bar techniques. That kind of sucks so I was hoping someone had an easy way to work around this besides what I've been doing.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform