Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00469202
Message ID:
00469221
Views:
21
>Chuck,
>
>Shouldn't it be
>
>This.SetAll( "Dynamic...
>
>You are in the grid, and the Grid.Columns are the controls with the DynamicBackColor.
>
>>* Grid1 InitEvent
>>ThisForm.SetAll("DynamicBackColor", ;
>> "IIF(RECNO('auth') =ThisForm.nGridRecno, RGB(193,255,255),"+ ;
>> "RGB(255,255,255))", "Column")
>>

ThisForm.SetAll("Dynamic...

also works, however you are right, and it will be more clear what you are really doing if you place in Grid.Init()
This.SetAll(...

Chuck, change the code in Init() to:

ThisForm.SetAll("DynamicBackColor", ;
"IIF(RECNO('auth') # ThisForm.nGridRecno, RGB(255,255,255),"+ ;
"RGB(193,255,255))", "Column")
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform