Below is the report I have created. I would like to draw a line after every group as depicted with red line in the image.
Tried meddling with Textbox Properties > Border Style expression. But that would not stay once I close and reopen it.
If I set border for whole group, the line would repeat for every row in group which I dont want.
Any help?
View
tab in Microsoft SQL Server Report Builder.Properties
check box is checked so that the Properties window is shown.ProductionCountry
select the entire group row. The properties should show for the row.Border
->BorderStyle
->Top
. The value will more than likely be blank.Top
field, enter the expression below for the top border.Top field value:
=IIF(Fields!ProductionCountry.Value = Previous(Fields!ProductionCountry.Value) OR Fields!ProductionCountry.Value = First(Fields!ProductionCountry.Value, "mydataset"),"None","Solid")
Change mydataset
value above to match the dataset name of your report.
Note:
If current row belongs to the same group as the previous row OR current group row is the first of the dataset, set border to none, set border to solid.