procedure TForm1.Timer1Timer(Sender: TObject);
var
m:tmessage;
begin
m.Msg:=WM_VSCROLL;
m.WParamLo:=SB_LINEDOWN;
m.WParamHi:=1 ;
m.LParam:=0;
postmessage(self.DBGrid1.Handle,m.Msg,m.WParam,m.LParam);post
end;orm
procedure TForm1.Button1Click(Sender: TObject);
begin
self.Timer1.Enabled:=true;
end; postmessage
若是須要讓他自動不斷地從頭至尾滾動,添加以下代碼
if table1.Eof then table1.First; table