Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid back color change only for rows with records
Message
De
22/06/2005 14:51:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/06/2005 09:15:03
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
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:
01025558
Vues:
14
>Hi
>You can set the grid back color
>
>Put this in grid Init
>
>nBackColor = this.BackColor
>this.BackColor = thisform.BackColor
>this.SetAll('DynamicBackColor',TRANSFORM(nBackColor),'Column')
>
First off, you don't need the Transform() - the parameter expected is an integer.

Actually, the combination of what you said and what he already got: the dynamic backcolor for columns as in the other replies, and the grid backcolor as you say here. The grid backcolor shows below the last row, if there aren't enough of them to fill the grid.

So, to recap:
this.BackColor = thisform.BackColor
This.SetAll( "DynamicBackColor", ;
   'IIF(!EMPTY(THIS.CURRENTCONTROL.VALUE), 0xFFFFFF, ';
+transform(thisform.backcolor)+')',"Column" )
Though, as Bhavbhuti said, the dynamicBackColor will paint empty cells with form's backcolor. For his original request, just the
this.BackColor = thisform.BackColor
is enough.

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