Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Several colors in a grid according to conditions
Message
De
04/06/2007 10:10:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01230208
Message ID:
01230216
Vues:
16
Thank You very much Edward and Sergey for your quick and helpful answer !!!


>You've a couple of cjoices
>
  • Put your logic in the method of the form and reference it in the dynamicbackcolor expression
    >
  • Add a column with desired color to the grid RecordSource and use it in the dynamicbackcolor expression
    >
    >>
    >>Is there a simple way to have several colors for rows (backcolor) in a grid according to conditions ?
    >>
    >>For example, the result I want :
    >>record 1 : red
    >>record 2 : blue
    >>record 5 : blue
    >>record 10 : green
    >>
    >>Result of condition 1 : record 2+5 colored in blue
    >>Result of condition 2 : record 1 is colored in red
    >>...
    >>
    >>I've tried things the AfterRowColChange method :
    >>
    >>thisform.grid.SetAll("dynamicbackcolor","IIF(My condition,RGB(128,128,255),RGB(0,128,255))","Column")
    >>
    >>
    >>But it works if you want only 2 colors. I have 4 ou 5 differents conditions, so 4 ou 5 different colors...
    >>
    >>Thanks !
  • Précédent
    Suivant
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform