我测试了一下,发现在dbgrid上按翻页键能实现这个功能,但直接选择到最后则无效,查了help发觉原因如下:
When the above conditions are met, the AutoFetchPackets property will attempt to call GetNextPacket when a UI control is used, or there are any calls that reference EOF or the DoAfterScroll event. If AutoFetchPackets is set to False then you must manually call GetNextPacket.
也就是说必须触发EOF 或 DoAfterScroll事件才行!