Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
how to bind 1 lakh records in gridview from sql server database, asp.net, c# as technologies
Posted

1 solution

No need to bind one lakh records.. If you read 1 record in 5 seconds, it will take you 138.888889 hours or 5.78703704 days to read the 100000 records... Do you think somebody is going to read it at all ????.. Instead use gridview paging or search functionality or dropdowns for filtering and displaying the required records..

Custom GridView with Paging and Filtering[^]

Also, if each record occupies a 1 KB on your page, it will be a 100 MB page. Now you need a 100*8 = 800 Mbps connection to download this amount of data in one second OR a 125 Mbps connection to download this on page in 5 seconds. Note that I have not counted the processing time of your server and local machine..

And yes, even if you are successfull in displaying all the 1 lakh records on the page, with about 30 records per page, it will count to 3333 pages to scroll... Get ready for a scroll marathon...
 
Share this answer
 
v9
Comments
[no name] 1-Oct-12 10:50am    
Well said.....aspne_regin

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