Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change the column's grid color
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00275210
Message ID:
00275784
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform