Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field colors in grid
Message
De
15/08/2000 12:23:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
13/08/2000 10:20:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00396925
Message ID:
00405034
Vues:
22
>>>I know it is asked before, but can anyone tell me how i can change the color of a fields in a grid ?
>>>
>>>Ex.:
>>>
>>>column 1 column2 column3 column4 column ..
>>>name Y N N ..
>>>.... N N Y ..
>>>.... N N Y ..
>>>.... Y N N ..
>>>.... Y Y N ..
>>>
>>>..
>>>
>>>when in a column the value is 'Y' (true) the color should be green
>>>when in a column the value is 'N' (false) the color should be red
>>>
>>>How?
>>>Or can you point me where i can find how to do it ?
>>>
>>>Marc
>>
>>
*Grid.init
>>for each oColumn in this.Columns
>> if type(oColumn.Controlsource)='L'
>>	oColumn.DynamicBackcolor = ;
>>	  'iif('+oColumn.Controlsource+',rgb(0,255,0),rgb(255,0,0))'
>> endif
>>endfor
Cetin
>
>
>Thanks,
>
>Sorry for the delay, have been away for some time (vacation)
>I've tried it, but could not get it to work, are there some other settings needed?
>
>Marc


Marc,
I assumed controlsources had logical type and Y-N is shown through inputmask. If that's not the case then code needs modification.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform