Board index » delphi » DBGrid paging

DBGrid paging

Hi Randy,

Quote
> How do you page a dbGrid??????

In the Property Dialog, check the Allow Paging option (in the Paging
tab), and then implement the PageIndexChanged event. For example as
follows:

  procedure TWebForm1.DataGrid1_PageIndexChanged(source: System.Object;
    e: System.Web.UI.WebControls.DataGridPageChangedEventArgs);
  begin
    dataGrid1.CurrentPageIndex := e.NewPageIndex;
    dataGrid1.DataBind // refresh data
  end;

See also Figure 7 and the code just below it in my article at
http://www-106.ibm.com/developerworks/db2/library/techarticle/dm-0401...

Groetjes,
          Bob Swart (aka Dr.Bob - www.DrBob42.com)

--
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Delphi 2005 PDF manuals available from http://www.drbob42.com/training

 

Re:DBGrid paging


How do you page a dbGrid??????

Other Threads