Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the datagridView Header color

Now the datagridView Header Background color is showing in Gray. I want to change to differenct color.

I Changed the background color in ColumnHeaderDefaultCellStyle, but nothing changed.

How to do this.

like image 883
Gopal Avatar asked Oct 24 '11 05:10

Gopal


1 Answers

Set the property EnableHeadersVisualStyles to False, then change the ColumnHeaderDefaultCellStyle background color to the color that you desire. You will be able to see the changes in the designer itself.

like image 156
codeGEN Avatar answered Oct 17 '22 08:10

codeGEN