this.dataGridView3.Rows[e.RowIndex].Cells["你的那个要判断的列名"].Style.BackColor = Color.MediumPurple;

 dataGridView1.Rows[r].Cells[e.ColumnIndex].Style.Font = new Font("宋体", 12, FontStyle.Underline);
dataGridView1.Rows[r].Cells[e.ColumnIndex].Style.ForeColor =Color.Blue;
dataGridView1.Rows[r].Cells[e.ColumnIndex].ToolTipText = string.Format("我是第{0}行,第{1}列的单元格", r, e.ColumnIndex);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-08-18
  • 2021-12-06
  • 2022-03-02
  • 2022-01-21
猜你喜欢
  • 2022-02-27
  • 2022-12-23
  • 2021-10-28
  • 2022-02-21
  • 2022-12-23
  • 2021-11-13
  • 2022-02-10
相关资源
相似解决方案