Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid back color change only for rows with records
Message
From
01/07/2005 09:39:07
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:
01028118
Views:
12
>Hi Dragan
>
>>
this.column5.dynamicbackcolor="iif(this.column5.readonly and not this.column5.enabled, "+ ;
>>   transform(thisform.backcolor)+", 0xffffff)"
>
>Can this be translated in terms of SetAll(). this.readonly stuff did not work when I tried to use it in SetAll().

No it can't, because the it evaluates in the context of the grid, not the column - so the meaning of "this" is "the grid". So you can't use setall with column properties in the expression; you can, though, have a loop:
for i=1 to this.columncount
   oCol=this.columns[i]
   oCol.dynamicbackcolor="iif(this."+ocol.name+;
      ".readonly and not this."+ocol.name+".enabled, "+ ;
      transform(thisform.backcolor)+", 0xffffff)
endfor

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