How to color alternative row in report

In report we utilize distinctive shading to alternative rows so each line could be comprehensible. We have to color elective line to recognize data clearly as well as to perceive information unmistakably. In RDLC report we can shade alternative rows with different color. To color alternative row in RDLC report follow the step below:

  1. Open report layout in visual studio
  2. Select row from table for which we want to show alternative color
  3. Go to properties windows and go to "BackgroundColor" properties. 
  4. Then select drop-down assist key and select expression.
  5. In expression window write code as follows:
           
                = iif(RowNumber(Nothing) mod 2, "AliceBlue", "White")
           
    
    Replace "AliceBlue" and "White" with color of your choice. Also we can select color from color picker.
  6. After completion of code click OK and save the report.
color alternative row in rdlc report

code to color alternative row in report

Post a Comment

Thank you for comment, I really appreciate your view.

–>