Gridview with paging two buttons when i click one button i have to display all the records

Posted by Parcha under ASP.NET on 7/26/2011 | Points: 10 | Views : 2157 | Status : [Member] | Replies : 2
in my webpage one gridview it contains 200records with paging pagesize:5 and two buttons are their
when i click the button i have to display all the records button name is show all
when i click the resetbutton i have to displaythe paging

plz help me how to write code for that




Responses

Posted by: Parcha on: 7/26/2011 [Member] Starter | Points: 25

Up
0
Down
Sorry Actually here iam using two gridviews
one for showing all records when i click the showall button
when i click the resetall button here iam showing another gridview with paging
how to write code for that plz help me iam unable popualting the showall grid view plz help me


Parcha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: SheoNarayan on: 7/26/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Parcha,

On click of Show All button, you need to call the server side method that retrieves all records from the database and populate into the GridView, you also have to disable the by setting AllowPaging=false. On click of Reset all button you have to show the records into another gridview with pagination (set AllowPaging=true).

To know how GridView works click http://www.dotnetfunda.com/tutorials/controls/gridview.aspx. To get more article related with GridView click http://www.dotnetfunda.com/search/Search.aspx?q=gridview.

Thanks



Regards,
Sheo Narayan
http://www.dotnetfunda.com

Parcha, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response