>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