Thank you Preston, that solved my problem. But even in my 2000 server machine, EnableHeadersVisualStyles property value was 'True', then how did it worked, just want to know why is this needed in XP
Galin, I tried with ColumnHeadersDefaultCellStyle and it worked fine in Windows 2000 server machine but the same code didn't worked in Windows XP machine. Plz. help me with this issue.
How do i give my DataGridView an overall Header. It is currently the same as this example with row and column header but i want to give it an overall header. such as "CDs" - in your example.
The previous way to do it was using CaptionText for a Datagrid but i cant find a way with DataGridView.
Any help would be much appreciated.
Thanks.
Can I change the BackColor of the DataGridView's Column Header and Row Header (C# VS 2005)
Can I change the BackColor of the DataGridView's Column Header and Row Header (C# VS 2005)
Colby
check DataGridView.ColumnHeadersDefaultCellStyle Property
http://msdn2.microsoft.com/en-us/system.windows.forms.datagridview.columnheadersdefaultcellstyle.aspx
CiaranODonnell
Thank you Preston, that solved my problem. But even in my 2000 server machine, EnableHeadersVisualStyles property value was 'True', then how did it worked, just want to know why is this needed in XP
maheshbhide
cc3078
David So
Thanks Galin :)
Can I also get the header backcolor with varying shades
dneigler
Hi,
How do i give my DataGridView an overall Header. It is currently the same as this example with row and column header but i want to give it an overall header. such as "CDs" - in your example.
The previous way to do it was using CaptionText for a Datagrid but i cant find a way with DataGridView.
Any help would be much appreciated.
Thanks.