网格视图中的asp.net单选按钮 [英] asp.net radiobutton in gridview

查看:70
本文介绍了网格视图中的asp.net单选按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我希望gridview可以显示访问数据库中的数据.
数据将为1或为空
网格视图的每一列中应具有单选按钮,并且应该检查数据库值是否为1,如果数据库值是null或0,则应取消选中. 我已经在gridview模板中添加了单选按钮,但是不确定如何从数据中获取选中或未选中状态

有人可以指导我吗
谢谢
Joe



i would want a gridview to show the data from an access database.
data would be either 1 or null
the grid view should have radiobuttons in each column and should be checked if the database value is 1 and unchecked if the value is null or 0.
i have added the radiobutton in the gridview template but not so sure on how to get the checked or unchecked state from the data

could someone guide me on this
thanks
Joe

推荐答案

[ ^ ]可能会有所帮助.
This[^] might help.


这篇关于网格视图中的asp.net单选按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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