可编辑的GridView问题 [英] editable gridview problem

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

问题描述

我正在使用aspx制作网页,我想要的是将大约一千条记录(从查询中)添加到gridview中,然后我希望这些记录是可编辑的,在其中添加一列一个命令字段,然后我在该列的每个单元格中输入edit一词,这使该行可编辑,但是当我更新记录时,页面总是重新加载,这使其非常慢,有没有更快的方法呢? br/>
非常感谢

解决方案

是的-忘记了在单个网页上拥有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屋!

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