Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
m using RowDataBound event on gridview. and the gridview is populating with around 1000 records . no pagination here... its getting too late to load the page while using Internet explorer.. can i have a better option to optimize????
Posted
Updated 2-Mar-12 3:22am
v3
Comments
Sergey Alexandrovich Kryukov 2-Mar-12 9:24am    
Any reason to use no pagination? Who needs 1000 records at the same time? No wonder it can be slow...
--SA
ZurdoDev 2-Mar-12 10:18am    
The better option is to use paging; however, what are you doing in RowDataBound? Share some code. You may be doing too much.
Tejas Vaishnav 3-Mar-12 6:21am    
first of all what the process you do in your rowdata bound event, your problem is related with that process. so provide your code with description what you do in your code and why.. so we provide better solution for your problem.

and one more thing you can go for paging also..

1 solution

If your data retrieval process is not slow, then you need to check what operation you do in rowdatabound. You try to find is it slow in server side while executing your c#/vb.net code, or it is becoming slow when it renders. If you have a lot of data in each row with quite a few number of columns, rendering may become slow. In this case please use pagination.

You may also think of lazy loading of the UI. Means items will be loaded once the user scrolls down. You need to use ajax for that.

Thanks
Mahmud
 
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