Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change Grid Header color dynamic
Message
From
17/06/2009 08:54:01
 
 
To
17/06/2009 08:10:00
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01406534
Message ID:
01406548
Views:
47
Hi Raza,

>Hi All:
>
>I have a created a custom class... cGrid which is based on VFP base class grid. Is it possible to change the color of the
> grid header and border from default value of RGB(236,233,216) ---to---> RGB(176,196,222) and how ?
>
>Do I need to place a command such as:
>
> This.Parent.ParentcGrid.SetAll("DynamicHeaderColor ???
>
>command in the init event of the cGrid ?.
>
>Any help is greately appreciated.
>
>Thank you in advance..
>
>Raz

First of all you will have to deactivate the Grid property 'Themes'.
Then you could use something like this:

FOR EACH oColumn IN oMyGridRef.Columns
oColumn.Header1.BackColor = RGB(176,196,222)
ENDFOR
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform