Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to format font of a single grid cell
Message
De
28/11/2008 20:42:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01364586
Message ID:
01364590
Vues:
17
>Simple question, but it has me stumped.
>
>I have a grid. I would like to change the color of the font for cells in the grid on an individual basis.
>
>How can I do that?

Check dynamic* properties - you can have multiple controls in a column, each for a different occasion, or can just set font properties dynamically. The expressions you enter (or assign programmatically) are eval()uated in the context of the grid itself; you can use the alias, This.SomeProperty to access any property of the grid etc. Lots of tools there to achieve whatever you want.

Dynamic properties are set for each column separately, so you only need to decide how does something in the current record decide how should the current row look. If it doesn't look right for other records, flip the value of .sparse property for the column where it happens.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform