在编辑模式下将Grodview单列设为只读 [英] Make Grodview single column readonly when its in edit mode

查看:73
本文介绍了在编辑模式下将Grodview单列设为只读的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我想使网格视图中的单个列仅在按下该行中的编辑"按钮时为只读.

例如.我在Gridview中有3列,即

edit(button):名称:time1:time2

当单击特定行的编辑按钮时,我将无法编辑名称"字段.然后,在输入时间列输入之后,用户将无法编辑该完整行.

谢谢,



I want to make a single column in a grid view read only when edit button in that row is pressed.

For eg. i have 3 columns in a Gridview i.e.,

edit(button) : Name : time1 : time2

when edit button is clicked for a particular row i should not be able to edit Name field. Then after entering time column entry user should not be able to edit that full row.

Thanks,

推荐答案

使用模板字段,在编辑模板字段中使用标签控件
use template field and in edit-template field use label control


这篇关于在编辑模式下将Grodview单列设为只读的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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