如何使gridview复选框无法选择 [英] how to make gridview checkbox not selectable
本文介绍了如何使gridview复选框无法选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我在gridview中有一个复选框列,我根据后面的代码中的某些条件检查并取消选中了gridview复选框但是在网页中我可以选中并取消选中这些复选框''s 。我知道这不会影响我的申请,只是为了限制目的。
启用=假;工作但似乎不活动所以我不需要这个
请建议我怎么做?
谢谢
Prafulla
hi
I have a checkbox column inside gridview and I made my gridview checkbox''s checked and unchecked according to certain condition in code behind but in web page I am able to check and uncheck those checkbox''s. I know it will not affect to my application but just for restriction purpose.
Enable=False; working but it seems inactive so I don''t need this one
Please suggest me how would I do that
Thanks
Prafulla
推荐答案
我认为您需要使用event.preventDefault()
[ ^ ]方法。
查看演示 - [演示]防止CheckBox的默认行为点击。 [ ^ ]
I think you need to prevent the default behaviour of click event usingevent.preventDefault()
[^] method.
Check the Demo - [Demo] Prevent Default Behaviour of CheckBox Click.[^]
这篇关于如何使gridview复选框无法选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文