在文本框中显示CheckBox选定的值 [英] Show CheckBox selected value in a textbox

查看:132
本文介绍了在文本框中显示CheckBox选定的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个数据网格,其中有两列,即CheckBox模板列和textcolumn.如果我选中了复选框,那么我想在数据列中显示TRUE,否则必须显示FALSE.有什么办法..有人可以帮我吗

问候
Kunjammu

Hi,

I have a datagrid having two columns, a CheckBox template column and textcolumn. if i checked the checkbox then i want to show TRUE in the datacolumn and otherwise have to show FALSE. is there any way..can anybody helpme

Regards
Kunjammu

推荐答案

请帮个忙,不要这样做.这是不必要的冗余(复选框已经代表了true/false值)只会使用户感到困惑.这将违反单一真相原则:
http://en.wikipedia.org/wiki/Single_Point_of_Truth [
Please do yourself a favor and don''t do it. This is unwanted redundancy (check box already represents true/false value) will only confuse the user. This would be a violation of the Single Source of Truth principle:
http://en.wikipedia.org/wiki/Single_Point_of_Truth[^].

—SA


这篇关于在文本框中显示CheckBox选定的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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