Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Colouring a row on a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00062613
Message ID:
00062624
Vues:
46
>>>How do I colour a specific row in grid? DynamicBackColor is used for columns not rows.
>>>
>>>I will like to colour each row based on the value of the data in a field on each row.
>>>
>>>Any ideas.
>>
>>Grid.SetAll("DynamicBackColor","IIF(field1=%value%, RGB(255,255,255), RGB(0,255,0))", "Column")
>
>I have having trouble with the use of that code I am using
>
>
>thisform.Grid1.SetAll("DynamicBackColor",IIF(thisform.grid1.ctime.combo1.value="0800", RGB(255,255,255), RGB(0,255,0)), "Column")
>
>I get the error "data type is invalid for this property".

Evan, check the bound column on your combo. Could you be using "0800" as display value while storing "8" or something similar?

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform