Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid DynamicBackColor
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00066890
Message ID:
00067371
Views:
33
Colin,

If you just want to have every other row a different color, you could use an adaptation of my shape highlighting class. You'd just create several shapes over the grid and it would be a lot easier becuase you don't ever have to move them. The code is available on my website.


>>>I have a grid in which I want every other line to be a different color. Using the example in VFP's help of using the MOD of RECNO() isn't practical. Is there a way I can do something like the MOD of the grids row numbers or does anyone else have another suggestion?
>>Hi,
>>Another way is to use ActiveRow or RelativeRow with mod() when indexes change. But I'm afraid it will slow down the grid.
>>Cetin
>
>This will only work as each row becomes active.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform