Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change backcolor of cell or row in grid based on conditi
Message
 
 
À
26/01/2017 14:00:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01647037
Message ID:
01647050
Vues:
67
J'aime (1)
>I have a procedure where I evaluate every field of the table and based on conditions cell or entire row should be painted in different color. when forms pops up grid should be colorful

Can you show your current code and what is not working?

Basically, you can do

thisform.grid1.column1.DynamicBackColor = "thisform.RefreshColors()"

and in the RefreshColors method of the form you would do
lnRGB = 0
do case

    case Field1 = 'Something'

       lnRGB = color number here
   case AnotherField = 'SomethingElse'
      lnRGB = different color number

  endcase

return lnRGB
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform