Click here to Skip to main content
15,908,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to implement paging in gridview in case where i have a large database...

ie first if i want to see 100 rows in a page,thats k...But next time i want to

change that to 200...What should i do.....Thanx...
Posted
Updated 30-Jun-11 20:40pm
v2
Comments
Mathews Davis 1-Jul-11 2:30am    
i want to dynamically parameterise paging.... ie Suppose i have 1lakh records and IF i want to get 100 pages in first page and 200 rows in second page..likewise....

In code behind,
GridView1.PageSize = 200
 
Share this answer
 
v2
Comments
Mathews Davis 1-Jul-11 2:19am    
I thinh u didnt understand the question....I have to parameterise the pagesize whenever req...
in gridview property change the following..

AllowPaging="True"
PageSize="100"
 
Share this answer
 
Comments
Mathews Davis 1-Jul-11 2:31am    
Can u plz see the comments i hv just added and gv me a rep!!!!!!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900