Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus on a grid
Message
From
09/10/1999 20:57:44
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00274649
Message ID:
00274655
Views:
19
>Can someone tell me how to highlight a row on the grid when the focus is on a textbox not on the grid. I am trying to do a search grid.

Well, you already received advice how to provide focus on the needed grid row. Now, the second part is how to 'highlight' (actually paint differently) current grid row:
*** grid.init event
thisform.grrecno=-1 && some form's property
this.recordsource='mycursor'
cLine="IIF(thisform.grrecno=recno('mycursor'),65535,16777215)"
this.setall("dynamicbackcolor",cLine,"column")
this.refresh
*** grid.beforerowcolchange event
thisform.grrecno=recno(this.recordsource)
*** grid.afterrowcolchange event
IF thisform.grrecno=recno(this.recordsource)
RETURN
ENDIF
thisform.grrecno=recno(this.recordsource)
this.refresh
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform