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

I am loading more than 20K data in Gridview and JQuery filter and sorting options applied to gridview.
SQL Query returns the values in 1.sec.
But to load the data to gridview it is taking more time.

Now i am loading 1000 per load and displaying and reloading next set by again firing the query.

Kindly guide me to display all the records at one time in Gridview.
Posted
Comments
Thanks7872 23-Jul-14 3:06am    
There is no magic way to improve the speed. It will take time to load all the data. Further, it makes no sense to show 20K data at a time.
Arunprasath Natarajan 23-Jul-14 3:11am    
Agreed, but it is our clients requirement.
Thanks7872 23-Jul-14 3:14am    
That doesn't mean that its possible. Its by design.
Kornfeld Eliyahu Peter 23-Jul-14 3:50am    
Can't be - client may want a grid that enables him to see 20K records, but that does not means that you have to send all it to the client...
nilesh sawardekar 23-Jul-14 4:08am    
did you tried to load listview instead of grid...

 
Share this answer
 
I would suggest you to go for Custom Paging. This would fetch only the number of rows per page, not all the rows.

See - Custom Paging in ASP.Net GridView using SQL Server Stored Procedure[^].
 
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