1  CylinderConditionDataGridView1.ColumnHeadersDefaultCellStyle.BackColor = Color.Yellow;
2  CylinderConditionDataGridView1.RowHeadersDefaultCellStyle.BackColor = Color.Yellow;

除此之外,还需要改变控件的EnableHeadersVisualStyles为False,否则代码无效。

相关文章:

  • 2021-05-31
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-10-16
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-08-04
  • 2022-02-07
相关资源
相似解决方案