如何在asp.net中动态禁用显示的记录? [英] how to disable displayed record dynamically in asp.net?

查看:105
本文介绍了如何在asp.net中动态禁用显示的记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,早上好,代码项目.

在我的项目中使用动态
我想动态禁用记录
在我的表中,如果将其设置为true,则一列包含可更改的内容,则应禁用页面中显示的数据.如果为false,则将启用数据.因此,我该如何在此处进行编码.
有人建议我..
谢谢

hi good morning code project.

am using dynamic in my project
i want to disable records dynamically
in my table one column contains changable if it is set to true then displayed data in page should be disabled..if it is false data will be enabled.so how can i do coding here.
any one suggest me..
thank you

推荐答案

我猜您正在使用网格视图控件.
将您的Ischangeable Column(包含可更改值的列)绑定到隐藏的控件.因此,在每一行中,您都有隐藏控件可用的值.

在行数据绑定事件中,找到隐藏的控件和所有其他控件实例.获取绑定到隐藏控件的值.
并根据其值设置所有控件的enable属性.
I guess you are using a grid view control.
Bind your Ischangeable Column (column that contains changable value) to a hidden control. So in every row you have the value available with the hidden control.

In the row data bound event find the hidden control and all the other controls instances. obtain the value value bound to hidden control.
And as per it''s value, set the enable property of all the controls.


这篇关于如何在asp.net中动态禁用显示的记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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