Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incremental search - highlighting active record in grid
Message
From
06/09/2000 14:53:28
 
 
To
06/09/2000 14:20:49
Denis Filer
University of Oxford
United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00413111
Message ID:
00413138
Views:
17
>I'm trying to highlight the selected record in the grid (color the activerow). I've been fiddling around with SetAll("DynamicBackColor" ... etc. No luck yet tho. Perhaps there's an easy way to those in the know ...!

What you need to do is have a property somehwere hold the RecNo() of the record source of your grid. Have it updated in the AfterRowColChange of the grid. Then, the Grid.Init() shoudl look like:

this.nRecno = recno(this.recordsource)
this.setall('dynamicbackcolor', 'iif(this.nRecNo = recno(this.recordsource), rgb(0, 0, 255), rgb(0, 0, 0))', 'column')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform