General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only