Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid back color change only for rows with records
Message
De
01/07/2005 09:39:07
Dragan Nedeljkovich
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:
01028118
Vues:
13
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform