private void dataGridView1_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow is null) return; Log("dataGridView1_Click" + dataGridView1.CurrentRow.Index.ToString()); bool myBool; myBool = !(bool)dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["X"].Value; // invertieren ! dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["X"].Value = myBool; myColumnDict[dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells["COLUMN_NAME"].Value.ToString()] = myBool; }
dataGridView1_CellClick
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)