日期:2014-05-17 浏览次数:20789 次
private void ckbChangechooce_Click(object sender, EventArgs e)
{
if (dataGridView1.Rows.Count > 0)
{
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
dataGridView1.Rows[i].Cells[0].Value = !(bool)dataGridView1.Rows[i].Cells[0].EditedFormattedValue;
}
}
}
private void ckbChangechooce_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count > 0) { for (int i = 0; i < dataGridView1.Rows.Count; i++) { dataGridView1.Rows[i].Cells[0].Value = ckbChangechooce.Checked; } } }