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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -