private void dataGridViewX1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            if (iii == 1)
            {
                if ((bool)dataGridViewX1.CurrentRow.Cells[0].Value)
                    dataGridViewX1.CurrentRow.DefaultCellStyle.BackColor = Color.Red;
                else
                    dataGridViewX1.CurrentRow.DefaultCellStyle.BackColor = Color.Green;
            }
        }

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2021-11-13
  • 2021-09-15
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-29
  • 2022-01-10
  • 2021-07-31
  • 2021-07-13
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案