Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid (Again)
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00197687
Message ID:
00198397
Views:
12
>Eric,
>Take the code OUT of refresh() and put it into the grid INIT. Once the DynamicBackColor and DynamicForeColor are set it doesn't need to be changed.
>
>HTH
>Barbara
>
>>Good idea but it doesn't work within grid.refresh. The Mod(This.RelativeRow,2) always give 0. It works fine when we clic on it however. So I wonder where to put this?

Didn't work:

I put this in the grid.init method. Comes out as RGB(255,255,255) for each row. As a test: RECNO() works fine but of course bring me back to the first question.

Maybe the rows are not define at this time?

THIS.SetAll("DynamicBackColor", ;
"IIF(MOD(THIS.RelativeRow, 2)=0, RGB(255,255,255) ;
, RGB(128,255,255))", "Column") && Alternate white and green records

*THIS.SetAll("DynamicBackColor", ;
* "IIF(MOD(RECNO(), 2)=0, RGB(255,255,255) ;
* , RGB(128,255,255))", "Column") && Alternate white and green records
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform