Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternating lines on a grid
Message
From
07/04/2000 08:44:07
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00356606
Message ID:
00356769
Views:
16
>>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform