Skip to main content
Known Participant
July 9, 2008
Answered

Alternating row color for CF report Builder?

  • July 9, 2008
  • 3 replies
  • 2398 views
I have a user who wants one of her reports to display alternating row colors for better read clarity. The reports are rather lengthy and the rows tend to blend in with eachother.
This topic has been closed for replies.
Correct answer epulfy
The way I handle this is to put a gray rectangle behind the values that spans the entire detail section. Then in the "Print Control" section of the "Properties" toolbar I'll put the equation "query.CurrentRow mod 2". That way it the background stripe will only color every other row.

3 replies

Inspiring
August 7, 2008
Yeah, just go to the "Modify" menu and you can modify the z-index of the elements. In this case just select the rectangle and send it to the back. That way it will be behind your text.
Known Participant
August 8, 2008
Wow that worked great. Thanks!!
Inspiring
August 7, 2008
Whoops, I meant to say I put the equation in the "Print When Condition" field in the "Properties" toolbar.
Known Participant
August 7, 2008
Thanks Epulfy. I am going to give this a try later today. Much appreciated


EDIT:: This does work. however I'm not sure how to set a rectangle to the background of the report so it's behind my details. I draw the rectangle and it just hides whatever I want to display. When I look at the report it does alternate with rows, but I can only see details from the rows that it does not alternate on. Any clue how to set it to the background?
epulfyCorrect answer
Inspiring
August 7, 2008
The way I handle this is to put a gray rectangle behind the values that spans the entire detail section. Then in the "Print Control" section of the "Properties" toolbar I'll put the equation "query.CurrentRow mod 2". That way it the background stripe will only color every other row.