0

I wonder if it is possible to change the color on the headers on a dataGridView1.
I have searched in the members and properties but are not sure if I can find anything.
By default it seems that the headercolor is "Control".
Ex: is it possible to change the color to ::Gray ?

dataGridView1 ->Columnheader* // And perheps here change color
2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Jennifer84
0

You can change column headers from the ColumnHeadersDefaultCellStyle property, but for it to work you have to set the EnableVisualStyles property to false.

0

That was the trick, thank you :)

You can change column headers from the ColumnHeadersDefaultCellStyle property, but for it to work you have to set the EnableVisualStyles property to false.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.