可以在key事件中判断按键,比如如果是左,你可以如下
integer num
if keydown(KeyLeftArrow!) then
num=dw_1.getcolumn()
if num<dw_1.object.datawindow.column.count then//好像是这么写的
dw_1.setcolumn(num)
else
if dw_1.getrow()>dw_1.rowcount() then
dw_1.scrolltorow(dw_1.getrow()+1)
end if
end if
end if
向右的基本相同的