What do you need to know is that expression evaluation rules in RS 2008 have changed as a result of the new on-demand processing model. As a result, state in class-level instance variables is discarded as you page through the report which makes maintaining state trickier between page requests. However, RS 2008 introduces report variables that guarantee one-time evaluation semantics.
How we can reuse it to accomplish our goal:
- Create a function that will update _evenRow flag state each time it's called.
Open report properties box -> Code tab -> Add next code:
- Set row background color depending on variable state.
- and finally the outcome
Regards,
Oleh