Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change the column's grid color
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00275210
Message ID:
00275784
Views:
22
>Hi Doron,

>What you are seeing is correct,  The DynamicBackColor "overrides" in a way >over the BackColor setting.  The BackColor is showing up in the unused rows >besace DynamicBC never touches them.  I suggest you modify your DynamicBC to >include an "AND"ed arguement to do the work of your BackColor = ect.
>
>Also, instead of a FOR loop to set the dynamicBC, you can use SetAll():
>
><pre>Thisform.Grid1.SetAll('DynamicBackColor', 'IIF(blah)', 'Column'Does this >clear some things up?)
Yes, that did it. The SetAll was a good idea then I did the following:

WITH This.grdPickList
  .SetAll("DynamicBackColor","IIF(&taBehavior[1,2],RGB(0,255,255),;
  RGB(255,255,255))","Column") 
  
  *** Some code
 .Columns[m.lnRow].DynamicBackColor=""
 .Columns[m.lnRow].BackColor=RGB(192,192,192)
ENDWITH

This way I do not need to enter enother condition into
the DynamicBackColor property. When m.lnRow gets me the
row number.

Thanks for your help

Doron
Previous
Reply
Map
View

Click here to load this message in the networking platform