Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternating lines on a grid
Message
De
07/04/2000 08:44:07
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00356606
Message ID:
00356769
Vues:
17
>>If your record order within a grid control is not in record number order is there anyway of alternating the background colour of each line in the grid?

>You can use the dynamiccolorproperty of grid's column.

It sounds like the problem is not what mechanism to use, but how to guarantee an alternating colorband. Typically: dynamicbackgroundcolor = IIF(recno()%2=0,color1,color2) If the index has the records sorted 1,3,5,2,4,7,6, then it causes an undesired result.

Is there a way to determine the relative row of the grid within the dynamicbackgroundcolor?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform