Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically Setting Grid Column Dynamic Backcolor
Message
 
 
À
02/09/2005 08:57:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01046179
Message ID:
01046180
Vues:
16
This message has been marked as the solution to the initial question of the thread.
I think it should be something like
                    colorvalue = [thisform.setpolicygridcolor(.recordsource,cField)]
                    .Columns(nColIndex).dynamicbackcolor = colorvalue
and it should be to be set only once when grid is set.

>I have a form class which contains a grid and the grid is populated during runtime. That all works fine. We have decided to set a cell's backcolor depending on the value in the underlying table. I am overlooking something in the process though because I keep receiving the message that the datatype is invalid for this property when I attempt to set the color for the column. My goal is to actually set the backcolor of the cell on the fly to highlight specific values.
>
>Here is an overview of the code in the form class method:
>
<snip>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform