Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlighting Rows in Grids
Message
From
01/11/1999 20:17:27
 
 
To
01/11/1999 19:41:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00285186
Message ID:
00285206
Views:
20
>Is it possible to Highlight the entire Active row of a grid in a different color than the normal background color?
>It would be very useful in locating the current record in a long list.
>Its difficult to see what record your on when all you have is the Record mark to go by. Any suggestions? Work arounds?

The common strategy here is to add a property to your grid class called CurRec or something.

THen, in the afterRowColChange event:

THIS.CurRec = RECNO(THIS.RecordSource)

Then, all oyu need is to use the DynamicBackColor property to change the color. You can set it for the entire grid in the init:

THIS.SetAll("DynamicBackColor","IIF(THIS.CurRec=RECNO(),255,16777215)","Column")
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform