Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Color a cell in a grid?
Message
De
06/11/1997 13:24:01
 
 
À
31/10/1997 15:45:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00057645
Message ID:
00058656
Vues:
38
>>>>I would like to be able to color specific cells in a grid based on the content of the grid.
>>>>ie: if source field = "blackout", black out cell.
>>>>
>>>>Is this possible? Has anyone done it? Can you tell ME how to do it?
>>>>
>>>>Paul Moon
>>>
>>>Have a look at the dynamicbackcolor and other dynamic... properties of a column.
>>>mygrid.column1.dynamicbackcolor = "iif(field1 = "BLACKOUT", RGB(0,0,0), RGB(255,255,255))
>>
>>OK, this should work. Is there any way to subclass the column in a grid so that I don't have to do this 240 times?
>
>Yes, there is, but not visually. There was a long thread about this a few weeks ago, search for 'subclass header' or something... if you can't find it, let me know.

If the control you are using in the grid cell is sub-classed you could take care of the colors there.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform