Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid row colors
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00531022
Message ID:
00531056
Vues:
11
This message has been marked as a message which has helped to the initial question of the thread.
>I think I have seen here somewhere about making alternate rows of a grid a different color. This is what I am trying to do. I know there is a column property to do this for columns, but what about rows?
>I think I have seen here somewhere about making alternate rows of a grid a different color. This is what I am trying to do. I know there is a column property to do this for columns, but what about rows?

Re-post (first time it didn't save).

Add one field to your table, say, NumOrd. Replace NumOrd with 1,2,3.... (note, this would work only in one predefined order). Now you can use
this.SetAll("DynamicBackColor", "IIF(NumOrd%2=0," + ;
			str(.cCurRecBackColor)+","+str(.BackColor)+")", "Column")
I use Cetin's highlighted grid, so you just have to modify its Init expression.
The code is of the top of my head and untested.

BTW, you can use Nick's GridHighlighter, you just have to set condition for condition highlight. In your case it would be NumOrd%2=0 or mod(NumOrd,2)=0
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform