Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid back color change only for rows with records
Message
De
30/06/2005 13:13:00
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01025404
Message ID:
01027758
Vues:
11
>Hi Jaime
>
>>I don't know if this is going to work with This.CurrentControl.Value, you said you wanted for rows containing **records**, so you should base this on the existence of a record in your table. Just use a field which is always filled, like the id, otherwise, i would try playing with recno()
>
>Thanks for your last suggestion, it did work for me, but to follow up on the same (similar) issue.
>
>How can I change the column backcolor to the backcolor of the form only for columns that are readonly=.t. and enabled=.f.
>
>I tried to put in this.... in your suggestion but that does not work.
>
>Please advise.

I've run a little test and found that any dynamic expression in the grid's columns is evaluated in the context of the grid, not the column, so...
this.column5.dynamicbackcolor="iif(this.column5.readonly and not this.column5.enabled, "+ ;
   transform(thisform.backcolor)+", 0xffffff)"

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform