我有一个Tablix表对象,该对象按列invoiceNumber分组。表中的行数不是静态的。我只希望表格的最后一行有底边框(所以中间各行之间没有边框)。
在最后一个单元格上,我的Border属性中有一个自定义函数:
=IIF(ROWNUMBER("invoiceNumber") = COUNT(Fields!invoiceTotal.Value, "invoiceNumber"), "Solid", "None")
<TablixCell>
<CellContents>
<Textbox Name="Textbox41">
<CanGrow>true</CanGrow>
<KeepTogether>true</KeepTogether>
<Paragraphs>
<Paragraph>
<TextRuns>
<TextRun>
<Value>=Fields!invoiceTotal.Value</Value>
<Style />
</TextRun>
</TextRuns>
<Style />
</Paragraph>
</Paragraphs>
<rd:DefaultName>Textbox10</rd:DefaultName>
<Style>
<Border>
<Color>LightGrey</Color>
<Style>=IIF(ROWNUMBER("invoiceNumber") = COUNT(Fields!invoiceTotal.Value, "invoiceNumber"), "Solid", "None")</Style>
</Border>
<TopBorder>
<Style>None</Style>
</TopBorder>
<BottomBorder>
<Style>None</Style>
</BottomBorder>
<PaddingLeft>2pt</PaddingLeft>
<PaddingRight>2pt</PaddingRight>
<PaddingTop>2pt</PaddingTop>
<PaddingBottom>2pt</PaddingBottom>
</Style>
</Textbox>
<rd:Selected>true</rd:Selected>
</CellContents>
</TablixCell>
</TablixCells>
但是系统仍然在每个单元格下面放置边框。我应该将功能放在其他地方吗?
谢谢!