Click here to Skip to main content
15,890,946 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

If suppose ,i have 50,000 of records in my database.I am trying to displaying in gridview.
But my requirement is, It has to display 100 records at a time and when i click on "Next" button the postback should occur and should display next 100 records from 101 to 200 like so on..

So can u please give me solution for my requirement.

Thanking you,
Gowtham
Posted

check here[^]
 
Share this answer
 
You can set the paging facility in the ASP grid view control. you can set the paging size to 100.

Then you can use the paging buttons in the bottom of the grid to navigate to the diff pages. You can also customize the type of paging buttons, ie,
numbers, or arrows etc.

Use this link
http://msdn.microsoft.com/en-us/library/aa479347.aspx[^]
 
Share this answer
 
v3
Hi, Gowtham :rose:

:thumbsdown:
Use the Paging Concepts, also refer the below Link...

http://programming.top54u.com/post/ASP-Net-2-0-Gridview-Paging-using-C-sharp.aspx[^]
 
Share this answer
 

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