How to change the color of winform DataGridview header?

后端 未结 5 928
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 07:26

I have tried to do it without success.

Is it possible ?

5条回答
  •  温柔的废话
    2020-11-28 07:56

    dataGridView1.EnableHeadersVisualStyles = false;
    dataGridView1.ColumnHeadersDefaultCellStyle.BackColor = Color.Blue;
    

提交回复
热议问题