Link to home
Start Free TrialLog in
Avatar of LenTompkins
LenTompkinsFlag for United States of America

asked on

Changing color of data grid column headers only

users would like to have all column headers only be in a color, but the values of each row be in white.
I have changed the Column Header Default Cell Style back color to yellow, and the default cell style back color to yellow as well and the header doesn't change color.  Does anyone have any suggestions?
Avatar of Anil Golamari
Anil Golamari
Flag of United States of America image

we can change the color of the header in code by using

grid1.HeaderStyle.BackColor = Color.Yellow
Avatar of LenTompkins

ASKER

I forgot to tell you that this is a windows form and there is no Heade rStyle property for the grid.
ASKER CERTIFIED SOLUTION
Avatar of nandithaa
nandithaa
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect Thank you very much.