0
我有一个dataGridView,他的第一列是checkBox。dataGridView CheckBox检查不工作
我想在此复选框上使用选中的事件。
这是我的代码:
dataGridView1.EditingControlShowing += (sender, e) =>
{
if (dataGridView1.CurrentCell.ColumnIndex == 0)
{
CheckBox cb = (CheckBox)e.Control;
cb.CheckedChanged += (s, e1) =>
{
dosomething();
};
}
};
,但是当我在第一列改变复选框它从未进入的CheckedChanged事件。