Solved

How can I speed up the rendering of a gridview with no pagination?

Posted on 2008-06-25
1
1,672 Views
Last Modified: 2013-11-07
I have a gridview on a page (5 columns returned from a SQL Server 2005 database & 1 checkbox column)  I don't have pagination specified on the page because the user needs the ability to select 0 to many rows.  I also have a textbox with a button with javascript behind the scenes so the user can specify the number of rows to select.  The problem occurs when there is more than roughly 500 rows returned to the page, anything less than that and everything loads fine.  But when there are more rows returned (could be up into the 5000's) the page takes long to load (more than 45 seconds).  I'm not doing any custom formatting or anything to the data displaying on the grid and the only control I have is a checkbox, which doesn't have any custom code attached to it.  When I run the query in Management Studio it returns in seconds no matter how large the dataset is.  Is there any way to speed up the rendering of this gridview?  I tried using an updatepanel but it doesn't seem to help matters.

Thanks in Advance.
0
Comment
Question by:chuck620
1 Comment
 
LVL 37

Accepted Solution

by:
samtran0331 earned 500 total points
Comment Utility
>>But when there are more rows returned (could be up into the 5000's)

I don't see why a user would want to see that many rows of data.
But if this grid does not do any editting, you can disable viewstate for the gridview or the page...that would speed it up some, but 5000 rows of data (even without viewstate) is a lot of html that needs to get rendered.

Also try adding to the page directive:
<%@ Page Buffer="false"

This keeps the page from waiting for all the html to be "ready" before it renders...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now