Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using grid view with row "data bound event" at row row data bound I am using some
function with loops to fill drop down of grid view in template columns.

GridView gets populated with selected index change event of drop down

My problem is :
The asp.net page is getting slower I mean when grid populates its taking
some time and some time page get hanged.

What to do to get rid of it?

Thanks in advance.
Posted
Updated 26-Mar-11 9:18am
v2
Comments
willempipi 26-Mar-11 14:12pm    
Can you show us the selected index change function of the dropdown?
Henry Minute 26-Mar-11 15:19pm    
Also where is the data to fill the grid coming from?
[no name] 4-Apr-11 11:43am    
(Apologies -- I'm new to Code Project and posted what should have been a Comment as a Solution. When I saw how it displayed, I realized my error.)

1 solution

How many rows/cells are being populated -- 100's, millions? I had a similar problem with an 800,000-row DataGridView. The more rows I had, the slower it loaded. I found an article (actually, recommended by a listing in Code Project) from Microsoft on improving performance of DataGridViews with large recordsets. It says to avoid changing the properties of all individual cells in a column; it also recommends using Virtual Mode if possible.

The article is at "http://msdn.microsoft.com/en-us/library/ms171621.aspx" and is titled "Performance Tuning in the Windows Forms DataGridView Control."

Hope this helps...
 
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