Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can you display 1 lakh 100000 records in a gridview without using paging? Give an example.

Thank you!
Posted
Updated 14-Dec-10 21:31pm
v3
Comments
Manfred Rudolf Bihy 15-Dec-10 3:22am    
And 1 lakh is what exactly? Ok I googled 1 lakh and came up with 100000. I'll edit your post.
Manfred Rudolf Bihy 15-Dec-10 3:27am    
Edit: Translated number, grammar, niceness.
Hiren solanki 15-Dec-10 3:30am    
I suggest you to use paging. if not then what's the question display normally. what's issue with that. elucidate your question.

:) Are you taking some test?

Well, as such showing all on a single page would NEVER be suggested based on the time it would take to load and all (basically the performance issues.)

Now, suppose you want to in a given scenario, then you can do it based on the grid display on browser. Fetch some first 100 records that is visible on screen and then when someone scrolls down then fetch more. Roughly, you can calculate the row number from scrolling and try to fetch records around that using XMLHttprequest.
 
Share this answer
 
Comments
Hiren solanki 16-Dec-10 5:57am    
That could be the way like Facebook, Twitter is using.
Manfred Rudolf Bihy 17-Dec-10 0:04am    
If one were to take it strictly this must also considered as paging, but when done as you described it will be totally transparent to the user. Since OP didn't exactly specify what kind of paging he meant to exclude (explicit, implicit or both) your question definitely deserves a 5!
It's horrible man to load 100000 records at a time in gridview. Use Paging technique.

SQL Server 2005 Paging Results[^]
 
Share this answer
 
Comments
Dalek Dave 15-Dec-10 5:49am    
Or employ a small boy at cheap rate to do it for you.
We do not do your homework for you.
Try it yourself, and if you get stuck, ask us then.
But don't expect us to hand it to you on a plate!
 
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