如何在gridview中使一列可编辑 [英] How I can make one column editable in gridview

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

问题描述

我有一个包含五列的网格视图,我想将一列设为可编辑而另一列为不可编辑我有一个包含复选框的列,当我选中复选框时我希望该列可编辑。请帮助我,我被困在上面。

I have a gridview with five columns and I want to make one column as editable and other as non-editable I have a column which contains checkboxes, when I check on the checkbox I want that column to become editable. Please help me, I am stuck on it.

推荐答案

在gridview的编辑模板中,只取标签并绑定你在gridview中绑定的相同内容。
In Edit template of gridview take labels only and bind the same you bind in gridview.


参考:使用Gridview插入,更新,删除.. 。简单方法 [ ^ ]


请参阅下面的网站它有一些关于您的问题的有用信息





http://www.dotnetfunda.com/articles/show/1122/editable-gridview-all-columns-in-grid-view-are-editable [ ^ ]



http://forums.asp.net/t/983488.aspx [ ^ ]
Refer these below Sites it has some useful information regarding your questions


http://www.dotnetfunda.com/articles/show/1122/editable-gridview-all-columns-in-grid-view-are-editable[^]

http://forums.asp.net/t/983488.aspx[^]


这篇关于如何在gridview中使一列可编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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