Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid back color change only for rows with records
Message
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:
01025409
Vues:
16
Dear Bhavbhuti
Try setting the backcolor of the grid to the same as the form, then in the Refresh of the grid, try SetAll( DynamicBackColor ) for all columns to the desired backcolor, based on something like (!empty(somefield)), like in:
*** Grid Refresh()
This.SetAll( "DynamicBackColor", 'IIF(!EMPTY(SomeAlias.SomeField, RGB(255,255,255), RGB(192,192,192))',"Column" )
HTH
Jaime

>Hi all
>
>I want the grid to have the background color of the form, good using backcolor.
>
>But I also want the rows containing record revert to the default white color.
>
>Right now IMO the grid looks like a white patch I want to reduce the pacth limited to only the area containing records.
>
>Please advise.
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform