Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid back color change only for rows with records
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01025404
Message ID:
01025409
Views:
15
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform