Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DynamicBackColor help with columns.
Message
 
 
To
27/09/2001 14:24:07
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00561583
Message ID:
00561608
Views:
29
This message has been marked as the solution to the initial question of the thread.
>I have a routine for a grid that highlights the a particular column entirely with one color. It also highlights the current row. The problem is, the row highlight "goes under" the column highlight. I need to reverse that and because of the IIF in the following lines, I can't. I need help figuring out how to change these lines.
>
>
>curRowRec=recno()
>this.SetAll("DynamicBackColor","IIF(recno()=curRowRec,RGB(0,128,255),RGB(255,255,255))","Column")
>thisform.grid1.columns(tagno()+1).DynamicBackColor="RGB(0,255,0)"
>
>Thanks
Add IIF to the current collumn DynamicBackColor also
thisform.grid1.columns(tagno()+1).DynamicBackColor= ;
       "IIF(recno()=curRowRec,RGB(0,128,255),RGB(0,255,0))"
I would also suggest that you make curRowRec a property of your grid base class or form. Otherwise it could get out of scope.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform