gridview中绑定中的大量数据 [英] large amount of data in the bind in the gridview

查看:109
本文介绍了gridview中绑定中的大量数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



用20000条记录填充sql存储过程的大量数据我的gridview数据量需要10分钟

所以如何减少加载gridview的时间



谢谢

Hello

large amount of data filling a sql store procedures with 20000 records my gridview with that amount of data takes like 10 minutes
so how to reduce the time to load gridview

thanks

推荐答案

我不建议回复一次性的所有数据。

而不是

您应该为您的数据加PAGE,并且只检索一页(固定大小,每个网格页面有50条记录)时间并向用户显示。这将减少aspx页面的大小并提高性能。
I would not recommend to retrive all data in one time.
Instead of
You should PAGE your data and only retrieve one page (of fix size, say 50 records per gridview page) of data at a time and show it to the user. That will reduce the aspx page's size and improve the performance as well.


这篇关于gridview中绑定中的大量数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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