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事件。