Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to highlight RECNO() in a grid?
Message
 
To
13/05/2000 11:08:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00369186
Message ID:
00371638
Views:
24
How do you add a property to a grid? I've added properties and methods to forms numerous times but can't seem to figure how to add a property to a grid.



>>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".
Al Williams

Anola MB, CANADA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform