Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to highlight RECNO() in a grid?
Message
From
13/05/2000 11:08:14
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00369186
Message ID:
00369342
Views:
22
>How do I get the grid to highlite the record that was searched for?

Create a property on the grid (or form, but preferably the grid) to hold the Recno() of the grids record source after every move of the record pointer (You can do it in an Init() and then in AfterRowCOlChange()), the set the dynamicbackcolor property of each column to 'iif(this.nRecno = recno(this.recordsource), rgb(255, 0, 0), rgb(255, 255, 255))'.

Cetin has an example of this in the Files section, find "Two grid classes".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform