在表格的mousemove事件中写:
PUBLIC lnWhere, lnRelRow, lnRelCol, lnX, lcColumn
STORE 0 TO lnWhere, lnRelRow, lnRelCol
thisform.grdTable1.GridHitTest(nXCoord-this.Left-this.LeftColumn,nYCoord-this.Top ,@lnWhere,@lnRelRow,@lnRelcol)
THISFORM.grdTable1.ACTIVATECELL(lnRelRow,lnRelCol)
thisForm.grdTable1.SetAll("DynamicBackColor","IIF(this.ActiveRow=RECNO( ), RGB(255,255,0), RGB(0,255,255))", "Column")
this.Refresh
不过,这个东西在表格内好像反应很慢,而在垂直滚动条上反应蛮快的。不知问题在哪里