General information
Category:
Coding, syntax & commands
My coworker came up with a great idea, although I am still optimizing and debugging it:
1) Create a property on the form (ThisForm.lShaded, .F.)
2) Create a method on the form (ThisForm.GridColors):
*GridColors
ThisForm.lShaded = !ThisForm.lShaded
RETURN IIF(ThisForm.lShaded, RGB(253,244,193), RGB(255,255,255))
3) Set the Columns' DynamicBackColor to: ThisForm.GridColors()
Result: Column instantly alternates colors, regardless of table size.
I am still working on fixing a bug whereby clicking on a row makes the colors go out of sync. I also have to test applying it to other columns, which shouldn't be hard.
Jerry
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only