Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid quest
Message
From
13/04/2001 19:12:48
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00495397
Message ID:
00495480
Views:
14
>Another quest, to get fancy, I implemented the following:
>thisform.grid1.SetAll("DynamicBackColor", ;
>"IIF(MOD(RECNO( ), 2)=0, RGB(255,255,255) ;
>, RGB(0,255,0))", "grid1") && Alternate white and green records

You might wanna specify which alias teh "RecNO()" applies to. Like Brad said, the "grid1" is wrong, look in the help file, it will tell you SetAll() needs a class, the example used "Column" as teh third parameter.

Finally, refresh() the grid right after this (unless the form isn't visible yet, then it will eventully be refresh implicitly).
Previous
Reply
Map
View

Click here to load this message in the networking platform