Yeshia

Hey all. I use this function ,

=IIF(RowNumber(Nothing) Mod 2,"White","LightGreen")

to alternate the row colors. This isnt exactly what I want however. I want every single row to alternate. I have three groups, and one detail row. I want each row, to alternate, and when I click a on the + thing to expand, I want the grid to do whatever it has to do to reajust the alternation so that every other row is colored LightGreen. is this possible



Re: Visual Studio Report Controls Alternate Row color, for ALL rows

Yeshia

Any help on this I can get the Details rows to alternate background colors. But when I put it on the Groups rows, it gets all screwed up. It doesnt alternate. It colors rows together and alternates others.



Re: Visual Studio Report Controls Alternate Row color, for ALL rows

Robert Bruckner MSFT

Readjusting based on the current toggle state is not supported.

Btw, the expression you are using will only work fine in the case of list details or table detail rows, but not for group headers/footers or in a matrix. Check out the following blog article regarding matrix grouping structures: http://blogs.msdn.com/chrishays/archive/2004/08/30/GreenBarMatrix.aspx

-- Robert