Datagridview Header

Hi,

I'm using Beta 2 of VS 2005 and trying to set the color of the datagridview header, but not having any luck.

Am I right to be setting the ColumnHeadersDefaultCellStyle  I have tried setting both the background and forecolor settings for this property but it is having no effect. Does anyone know how to change this or is this a fault with Beta 2

Thanks

Mark


Answer this question

Datagridview Header

  • aCiD2

    I played with the style and I think this is a bug… changing the Font in the same manner is acceptable but changing the color is not. This is weird.

    This link:
    http://winfx.msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/winfx/ref/ns/system.windows.forms/c/datagridviewcellstyle/datagridviewcellstyle.asp

    is the MSDN example of setting cell styles and even this version doesn't work properly.

    Eli

  • Datagridview Header