摘要: 关于DataGridView中DataGridViewCheckBoxCell 控制选中,以下是单选实现,需要设置该列readonly属性为ture,否则只有当选中其他时才会有反应!以下部分代码 dgv.CommitEdit(DataGridViewDataErrorContexts.Commit);DataGridViewCheckBoxCellchktmp=(DataGridViewCheckBoxCell)dgv.Rows[e.RowIndex].Cells["chk"];if(!(bool)chktmp.FormattedValue){chktmp.Value=tr 阅读全文
posted @ 2011-06-05 14:40 天纯蓝 阅读(675) 评论(0) 推荐(0) 编辑