General information
Category:
Forms & Form designer
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only