I need to change the header backcolor's in my grid. I am assigning the
color like this

form1.grid1.columns(1).header1.backcolor=rgb(255,0,0) or whatever the color

When I refresh the grid, it is still grey.

I am only changing a couple of the column header colors to indicate certain
things for the users.

Can anyone help me with this?

Scott

RE: header backcolor by MichelRoy

MichelRoy
Fri Dec 02 16:23:02 CST 2005

if you run on XP with themes enabled you are wasting your time.


"Scott Cadreau" wrote:

> I need to change the header backcolor's in my grid. I am assigning the
> color like this
>
> form1.grid1.columns(1).header1.backcolor=rgb(255,0,0) or whatever the color
>
> When I refresh the grid, it is still grey.
>
> I am only changing a couple of the column header colors to indicate certain
> things for the users.
>
> Can anyone help me with this?
>
> Scott
>
>
>

RE: header backcolor by MichelRoy

MichelRoy
Fri Dec 02 16:36:02 CST 2005

if you really want to spend the time, you could use Calvin's trick and
paint a semi transparent bitmap on top of your grid header.

http://blogs.msdn.com/calvin_hsia/archive/2005/11/20/495152.aspx


"Scott Cadreau" wrote:

> I need to change the header backcolor's in my grid. I am assigning the
> color like this
>
> form1.grid1.columns(1).header1.backcolor=rgb(255,0,0) or whatever the color
>
> When I refresh the grid, it is still grey.
>
> I am only changing a couple of the column header colors to indicate certain
> things for the users.
>
> Can anyone help me with this?
>
> Scott
>
>
>

Re: header backcolor by Jack

Jack
Fri Dec 02 19:15:21 CST 2005

On Fri, 2 Dec 2005 14:31:18 -0700, "Scott Cadreau" <scadreau@aros.net>
wrote:

>I need to change the header backcolor's in my grid. I am assigning the
>color like this
>
>form1.grid1.columns(1).header1.backcolor=rgb(255,0,0) or whatever the color
>
>When I refresh the grid, it is still grey.
>
>I am only changing a couple of the column header colors to indicate certain
>things for the users.
>
>Can anyone help me with this?

To set the header backcolor, you will have to turn off the Themes
property for the grid.

Re: header backcolor by Paul

Paul
Sun Dec 04 17:13:51 CST 2005


"Jack Jackson" <jacknospam@pebbleridge.com> wrote in message
news:bcs1p1dqbfvsu3rsghra9q52v0gv1tt1jo@4ax.com...
> On Fri, 2 Dec 2005 14:31:18 -0700, "Scott Cadreau" <scadreau@aros.net>
> wrote:
>
>>I need to change the header backcolor's in my grid. I am assigning the
>>color like this
>>
>>form1.grid1.columns(1).header1.backcolor=rgb(255,0,0) or whatever the
>>color
>>
>>When I refresh the grid, it is still grey.
>>
>>I am only changing a couple of the column header colors to indicate
>>certain
>>things for the users.
>>
>>Can anyone help me with this?
>
> To set the header backcolor, you will have to turn off the Themes
> property for the grid.

It would be nice to be able to set the color and keep themes. Maybe in
VFP10, if there is one...