Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid back color change only for rows with records
Message
From
30/06/2005 13:13:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01025404
Message ID:
01027758
Views:
10
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform