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

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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.