1. Jon Stoller
  2. PowerBuilder
  3. Thursday, 29 November 2018 03:31 AM UTC

Can you make a datawindow where every other row has a different background color?   
I need it for reports to make them easier to read. 

In other words, Can the odd number lines - Lines 1, 3, 5, etc., have a white background. And can the even numbered lines - lines 2, 4, 6, etc.,  have a different color background, like "button light shadow" ?

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 29 November 2018 04:46 AM UTC
  2. PowerBuilder
  3. # 1

Hi Jon;

    Add this expression to the DWO's "Detail Band" background colour ...

if (mod(getrow(), 2) = 0, rgb(128,128,128),rgb(192,192,192))

Now just change the RGB method values to get the colour you desire.

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.