dev GridControl控件的checkbox能设置成一次只能勾选一行数据么 http://blog.csdn.net/weinierbian/article/details/6255402就是这个帖子最下面那张图的check一栏,能设置成选了一个以后,其他置灰且不能再被编辑么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 简单的方式就是循环判断。或者在点击的时候,先把checkbox重置一下都为unchecked,就可以 dtCol.DataType = System.Type.GetType("System.Boolean");这是我的代码 int _LastClickRowIndex = -1; private void CheckColumn_Click(object sender, EventArgs e) { if (_LastClickRowIndex != -1) { DataRow _Row = this.gridViewTeam.GetDataRow(_LastClickRowIndex); string _TeamGUID = _Row.Field<string>("XFJG_ID"); _Tableid_XFJG.Rows[_LastClickRowIndex].SetField("Choice", false); } int SelectRowIndex = this.gridViewTeam.GetSelectedRows()[0]; _LastClickRowIndex = SelectRowIndex; DataRow _SelectRow = this.gridViewTeam.GetDataRow(SelectRowIndex); // string _TeamGUID = _SelectRow["XFJG_ID"].ToString(); } qldsrx 青龙白虎请进 请问获取与指定的值相关联的键 Response.OutputStream异常,请教高手解决 如何C#中怎么把GridView用电子表格保存下来 C#判斷XML節點屬性是否存在 string转换为double的问题! 怎么画这样的圆饼图? 问个.net问题 高分请教画矩形的问题,顶者有分 C#是怎麼用的? c#serialport IO异常,请问是什么原因导致的呢? C# 编程 文本框
或者在点击的时候,先把checkbox重置一下都为unchecked,就可以
这是我的代码
private void CheckColumn_Click(object sender, EventArgs e)
{
if (_LastClickRowIndex != -1)
{
DataRow _Row = this.gridViewTeam.GetDataRow(_LastClickRowIndex);
string _TeamGUID = _Row.Field<string>("XFJG_ID");
_Tableid_XFJG.Rows[_LastClickRowIndex].SetField("Choice", false);
}
int SelectRowIndex = this.gridViewTeam.GetSelectedRows()[0];
_LastClickRowIndex = SelectRowIndex;
DataRow _SelectRow = this.gridViewTeam.GetDataRow(SelectRowIndex);
// string _TeamGUID = _SelectRow["XFJG_ID"].ToString();
}