DataGridView Column header Color - vs 2005

  • Thread starter Thread starter sudhaoncyberworld
  • Start date Start date
S

sudhaoncyberworld

Hi Techies,


I have added datagridview in my windows application, i have set the
Column header color to some color, but it is not reflecting the color
whatever
i set there.Its just showing the color "Control".I am using Win XP OS,


But the samething is working perfectly in Win 2000 Prof, what could be
the problem, how can i resolve it.....


Enviroment :-
-------------------
IDE - VS 2005
Lang - c#
Framework - 2.0
Application - Windows
OS - Win XP
Expecting solution
Thanks
 
You have to set the DataGridView.EnableHeadersVisualStyles to False so that
the XP theme is not used to paint those cells...
 
Thanks a lot, it worked out


You have to set the DataGridView.EnableHeadersVisualStyles to False so that
the XP theme is not used to paint those cells...
 
Back
Top