请问怎样把一组(多个)RadioButton控件, 绑定到同一个数据源呢? rdo1.DataBindings.Add("Checked", bds, "isEmpty");rdo2.DataBindings.Add("Checked", bds, "isEmpty");这样没有达到理想的效果, 请问正确的做法应该怎样写呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果 "isEmpty" 值为true, 则第一个RadioButton控件为选中状态, 第二为非选中状态如果 "isEmpty" 值为flash, 则第一个RadioButton控件为非选中状态, 第二为选中状态 是不是这个意思?radioButton1.DataBindings.Add("Checked", bds, "IsEmpty");radioButton1.Checked = (Boolean)bds.Tables[0].Rows[0]["Checked"];radioButton2.DataBindings.Add("Checked", bds, "错");radioButton2.Checked = !(Boolean)bds.Tables[0].Rows[0]["Checked"]; C#的随机数问题 obeject定义变量的问题 如何随机数不重复? c#中,textbox1中的时间+textbox2中的时间=textbox3中的时间问题? 有没有人做过财务分析系统?都用的什么技术,给个思路 如何在winform中根据不同条件设置不同行的颜色 如何获取邮箱中指定的文本文件的内容? 开发windows窗体应用程序,数据库连接字符串应该放在哪儿呢? 树的遍历,我想计算由一节点开始到下面6层合格的数据,节点下不合格的由他下节点及格顶上,怎么遍历统计。。在线等待。谢谢大家 httpwatch抓取新浪博客登陆脚本 关于C#的反编译对比 DataTable怎么重新排序?
如果 "isEmpty" 值为true, 则第一个RadioButton控件为选中状态, 第二为非选中状态
如果 "isEmpty" 值为flash, 则第一个RadioButton控件为非选中状态, 第二为选中状态
radioButton1.DataBindings.Add("Checked", bds, "IsEmpty");
radioButton1.Checked = (Boolean)bds.Tables[0].Rows[0]["Checked"];
radioButton2.DataBindings.Add("Checked", bds, "错");
radioButton2.Checked = !(Boolean)bds.Tables[0].Rows[0]["Checked"];