General information
Category:
Forms & Form designer
>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
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