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

sql server reporting services : Hiding Table Grid Lines



John Wright
5/1/2007 10:27:09 AM
I have a table that duplicate data in some of the columns. I have the
property set to hide the duplicates, but I also want to turn off the borders
for those cells that are duplicated so I gives the same appearance as a
Matrix report when it has duplicated items in a column. Does anyone have an
expression that will turn off the grid lines for a cell if there are
duplicate items and change the background colors of the whole row that are
duplicates?

I am using SSRS 2005.


John Wright

EMartinez
5/1/2007 7:39:24 PM
[quoted text, click to view]


I'm afraid not; however, if you can determine the duplicates in the
query/stored procedure that is sourcing the report, you can avoid the
duplicates entirely and/or return a flag column (i.e., IsDuplicate) to
the report that can be used for conditional border hiding. Then as
part of the cell properties under BorderStyle for Left/Right/Top/
Bottom you can use an expression like the following to suppress the
borders:
=iif(Fields!IsDuplicate.Value = 1, "None", "Solid")
Hope this helps.

Regards,

Enrique Martinez
Sr. Software Consultant
John Wright
5/2/2007 3:55:58 PM
If you use the previous function for each grid line (top,bottom, right,left)
and use an IIF statement you can hide or show the lines just fine. Thanks
for the help.

John
[quoted text, click to view]

AddThis Social Bookmark Button