Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make the whole row of the grid to use the same forecolor
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00525731
Message ID:
00525952
Vues:
17
>In simplest case, if you did not move columns around and assuming that all columns have textboxes you can place the following in OnPostHighlightRow() method:
>
>lcHost = THIS.chostname
>lnColumn = THIS.PARENT.&lcHost..ActiveColumn
>loControl = THIS.PARENT.&lcHost..Columns(lnColumn).Text1
>loControl.ForeColor = < your conditional color here or IIF returning it >
>
>
>If not - before you set that forecolor, you will need more code to determine also which column is really ActiveColumn, which control in it is CurrentControl, does that CurrentControl have ForeColor property.

Hi Nick,

This works, thank you. That's great.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform