DataGridView Column Header Backcolor change not working

Hi,

I've tried to change the backcolour of the Column Headers in a DataGridview but making the change in the properties or in code has no effect e.g. the following code statement doesn't cause any change

With dgv

.ColumnHeadersDefaultCellStyle.BackColor = Color.Beige

end with

What am I missing? Any clue most welcome.
[688 byte] By [Craigton] at [2008-3-7]
# 1

why using with ? you have only one line so use

dgv.columheadersdefaultcellstyle.backcolor = color.beige

OmarAbid at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Basic Orcas...
# 2
Thanks for this but it makes no difference. I'm now using Beta 2 and that works fine.
Craigton at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Basic Orcas...
# 3
Happy programing
OmarAbid at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Basic Orcas...

Visual Studio Orcas

Site Classified