标签:dev gridcontrol 单选框 效果 gridview
private void gridView1_CellValueChanging(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) { //此处4是单选框所在的列号 if (e.Column.ColumnHandle != 4) { return; } for (int i = 0; i < gridView1.DataRowCount; i++) { //非当前行 置为 未选中状态 if (i != e.RowHandle) { //0表示 未选中 gridView1.GetDataRow(i)[e.Column.ColumnHandle] = "0"; } } }
标签:dev gridcontrol 单选框 效果 gridview
原文地址:http://blog.csdn.net/jiankunking/article/details/44225461