Groups | Blog | Home
all groups > sql server reporting services > may 2005 >

sql server reporting services : Shading Grouped Detail Rows...


Bob Morvay
5/20/2005 1:29:02 PM
I am trying to set an alternate shading style for each set of grouped detail
rows that I have. I can easily set each row to an alternating shade by
creating an expression on the Background color. What I really need is to
shade a grouping of rows in alternate style. I tried to create a custom
shared function that the Background expression could use but it only shades
the first cell of the row because each textbox calls this function. Any
insight???

Here is the little defunct function that I created...

Shared m_stunum as string = ""

Shared Function getShadeColor(ByVal p_stunum As String) As String
If m_stunum <> p_stunum Then
m_stunum = p_stunum
Return "YellowGreen"
Else
Return "White"
End If
End Function

and at the row I set the background expression to: =Code.getShadeColor(
Fields!stunum.Value)

This did not work...

Thanks in advance.

Bob Morvay
5/20/2005 2:28:08 PM
If anyone is interested, I found the answer in a blog by Chris Hays:
http://blogs.msdn.com/ChrisHays/.


[quoted text, click to view]

AddThis Social Bookmark Button