Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd behavior of grid in SetAll
Message
From
28/01/1999 18:59:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Odd behavior of grid in SetAll
Miscellaneous
Thread ID:
00181604
Message ID:
00181604
Views:
31
I have 2 forms, both with a grid on it with the following command in the grid's Init() event:

*--Alternate white and green records
THIS.SetAll("DynamicBackColor", "IIF(MOD(RECNO( ), 2)=0, RGB(255,255,255) ;
, RGB(0,255,0))", "Column")

It does just what it's instructed, except when a grid column uses an editbox instead of the usual textbox as the CurrentControl. On one form, it displays the appropriate green color but doesn't change the background color when selected, like other textboxes. The grid column on the other form doesn't chang the color to green at all. I have double checked my code to make sure I'm not changing the color again somewhere. Any clue why the different behavior?
It's "my" world. You're just living in it.
Next
Reply
Map
View

Click here to load this message in the networking platform