asp.net页面在下拉列表的选择索引更改事件上花时间填充gridview [英] asp.net page taking time to populate gridview at select index change event of dropdown

查看:86
本文介绍了asp.net页面在下拉列表的选择索引更改事件上花时间填充gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在行数据绑定的行中使用带有行数据绑定事件"的网格视图,我正在使用一些
具有循环功能,可填充模板列中网格视图的下拉菜单.

GridView使用下拉的选定索引更改事件填充

我的问题是:
我的意思是asp.net页的运行速度变慢,这是因为当网格填充它时,
某些时间和某些时间页面会被挂起.

如何摆脱它?

在此先感谢.

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.

推荐答案

正在填充多少行/单元格-100英寸,数百万? 800,000行的DataGridView也有类似的问题.我的行越多,加载速度就越慢.我从Microsoft找到了一篇有关提高具有大记录集的DataGridViews性能的文章(实际上,是Code Project中的清单推荐).它表示要避免更改列中所有单个单元格的属性;它还建议您尽可能使用虚拟模式.

本文位于"http://msdn.microsoft.com/zh-cn/library/ms171621.aspx",标题为"Windows窗体DataGridView控件中的性能调整".
希望这对您有帮助...
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...


这篇关于asp.net页面在下拉列表的选择索引更改事件上花时间填充gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆