在retrieveStart事件中
il_上次的当前行=getrow()
在retrieveEnd事件中
if rowcount()>0 then
//必须使用rowcount()函数,
//如使用rowcount参变量,在filter导致primary缓冲区中0行时会出错
selectrow(1,true)
if il_上次的当前行=1 then
post event rowfocuschanged(1)
end if
end if
il_上次的当前行 是为 数据窗口对象 声明的<实例变量>
如果不在RetrieveStart中进行记录, 在dw_1的第二次Retrieve时, 就不会触发rowfocuschanged了