c# - How to do view 2nd page in paging -


i able view 1st page upon search if data more 10 rows showing me full grid bind.

how can view 2nd page

 public void fncfillapplication()     {         try         {               dataset ds = new dataset();             ds.readxml(server.mappath("application.xml"));             if (ds.tables[0].rows.count != 0)             {                 gvapplication.datasource = ds;                 gvapplication.databind();              }           }         catch (exception ex)         {             ex.message.tostring();          } 

on page index applying paging , datasource xml

 protected void onpageindexchanging(object sender, gridviewpageeventargs e)     {         gvapplication.pageindex = e.newpageindex;        this.fncfillapplication();     } 

i able view 1 st page when doing paging clicking 1 when click on 2nd page full grid bind.

how able see data further if pagesize="10" data in grid 20 rows.how see last 10 rows.

set properties-

enablepaging

enablepaging property true gridview paging.

pagesize

number of rows data source display per page.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -