Click here to Skip to main content
15,891,912 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I Have a Table which have 10000 Records . i want to show that data in Gridview with pagging . but every page index event it going very slow because it retrieve data again database table .. So tell me any way to deduce execution time.... AARIF
Posted
Updated 27-May-14 0:09am
v2
Comments
Richard MacCutchan 27-May-14 5:36am    
Don't read that many records in one go, it will always be slow, and no one is going to page through 10,000 records to find the one they are interested in. Provide proper filtering selectors and extract only the data that the user is interested in.
Bh@gyesh 27-May-14 5:51am    
Use JQgrid instead of simple grid. It will definitely improve performance.
http://trirand.com/blog/jqgrid/jqgrid.html
Thanks7872 27-May-14 6:13am    
Not at all. JQGrid will first load all the records and then apply paging on it. It is worst even than normal Gridview. Never think of JQGrid. Try binding Jqgrid and put break point there. It will get hit two times.
Bh@gyesh 27-May-14 6:19am    
Have you tried with Ajax and JQgrid? With JQuery I have tried and It took 5 to 7 second to load data in lakhs.
You have to use AJAX with this option.

1 solution

Try using this Approach

ASP.NET Pagination[^]
 
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