dbgrid中的数据比较多有成千上万条,现在我想进行分页显示;
请做过的朋友告诉小弟如何进行,最好详细点,非常感谢!!!

解决方案 »

  1.   

    http://community.csdn.net/Expert/topic/3081/3081524.xml?temp=.2068598 你试一下
      

  2.   

    procedure TForm1.TreeView1KeyDown(Sender: TObject; var Key: Word;
      Shift: TShiftState);
    begin
    if Key = VK_F8 thenSendMessage(TreeView1.Handle,{ HWND of the Memo Control }WM_VSCROLL,{ Windows Message }SB_PAGEDOWN{ Scroll Command },0) { Not Used }
    else if Key = VK_F7 thenSendMessage(TreeView1.Handle,{ HWND of the Memo Control }WM_VSCROLL,{ Windows Message }SB_PAGEUP,{ Scroll Command }0); { Not Used }end;
      

  3.   

    如果你用的是clientdataset可以直接通过packetrecord设置每页返回的记录树,如果用adoquery,可以通过maxrecord属性设置
      

  4.   

    adodataset有分页的几个属性,你可以查一下帮助
      

  5.   

    不好意思,说错了,是recordset的属性,
    输入“recordset.”后,提示里有pagesize、page、absloutpage什么的,很好用