http://jclhy.bokee.com/viewdiary.41216892.html

DataGridViewCellStyle style = new DataGridViewCellStyle();
            style.ForeColor = Color.Red;
            foreach (DataGridViewColumn col in this.dataGridView1.Columns)
            {
                col.HeaderCell.Style = style;
            }
            this.dataGridView1.EnableHeadersVisualStyles = false;  //<----

相关文章:

  • 2021-08-26
  • 2021-08-12
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案