DataGridView Column header Color - vs 2005

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
 
P

Patrice

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

sudhaoncyberworld

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top