代码改变世界

随笔档案-2013年05月

在DataGridView中的CheckBox值变更后立即获取值。

2013-05-21 14:51 by 咒语, 555 阅读, 收藏, 编辑
摘要: private void dgView_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 8) { dgView.CommitEdit(DataGridViewDataErrorContexts.CurrentCellChange); var val = dgView["All", e.RowIndex].Value;......今天写到DataGridView... 阅读全文