private sub flexgrid_mousemove(x as integer,y as integer......)
dim mrow as integer'当前光标所在行
dim mcol as integer'当前光标所在列
dim i as integer
dim counti as integer'列宽总计
for i=0 to flexgrid.cols-1
counti=counti+flexgrid.colwidth(i)
if counti>y then
mcol=i
exit for
end if
next
with flexgrid
mrow=cint(x/.rowheight(1))+.toprow
if .textmatrix(mrow,mcol)>0 then
.mouseicon=hand.cur
else
.mouseicon=0
endif
end with
end sub
单击用flexgrid.row可知所指向的是第几行