General information
Category:
Forms & Form designer
>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
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