abdul_b Posted November 6, 2009 Share Posted November 6, 2009 Hi, I dragged the following fields to detailed view band, which will show multiple records while executing the report.Example : Employee Number, Employee Name, DOB, Salary and so on... I like to display the odd rows in one color and even rows in another color in detailed view band.. Is there any procedure to set the even and odd row colors differently using ireport.Kindly consider this and help me asap.......Thanks in advance............. Link to comment Share on other sites More sharing options...
iancr01 Posted November 6, 2009 Share Posted November 6, 2009 You need to define a style and add a conditional style.. something like: new Boolean($V{REPORT_COUNT}.intValue() % 2 == 0) (make the color light blue for example) Then you need to apply the style to the field(s) you need to alternate the color for. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now