可编辑的GridView问题 [英] editable gridview problem
本文介绍了可编辑的GridView问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
非常感谢
解决方案
是的-忘记了在单个网页上拥有1000条记录的愚蠢行为.使它分页,然后编写代码以仅加载所需的记录.观察您的视图状态,如果它很大,则说明您正在加载太多数据.
i''m making a web page using aspx, what i want is to add into a gridview about a thousand records (from a query), then i want those records to be editable, i add a column in which i add a command field, then i put in every cell of that column the word edit, which makes the row editable , but when i update a record the page always reload, which makes it VERY SLOW, is there a faster way to do this?
Thanks a lot
解决方案
Yes - forget the idiocy of having 1000 records on a single web page. Make it paged, and write the code to only load the records you need. Watch your viewstate, if it''s massive, then you''re loading too much data.
这篇关于可编辑的GridView问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文