[英]SSRS 2008 Tablix bold just one row?
Is there a way, in SSRS to have just one row on a table (Tablix) highlighted if that one row has important information for the user. 有没有一种方法,在SSRS中,如果表(Tablix)上的一行对用户来说具有重要信息,则该行仅高亮显示。 Let's say, for example, I wanted the first row in bold.
比方说,例如,我想要第一行为粗体。 How would I make that happen?
我将如何实现?
I think the syntax is =IIF(ROWNUMBER(NOTHING)= 1, "#FF0000", Nothing)
我认为语法是
=IIF(ROWNUMBER(NOTHING)= 1, "#FF0000", Nothing)
I managed to make my table morph from this: 我设法使我的表变形:
Col 1 Col 2 Col 3
[Col_1] [Col_2] [Col_3]
to this: 对此:
Col 1 Col 2 Col 3
Expr [Col_2] [Col_3]
But should the expression for Value
be: 但是
Value
的表达式应该是:
=Fields!Col_1.Value
=IIF(ROWNUMBER(NOTHING)= 1, "#FF0000", Nothing)
Set the background color property or font weight based on whatever your criteria is. 根据您的条件设置背景颜色属性或字体粗细。 You can use ROW_NUMBER() to check if it's the first row.
您可以使用ROW_NUMBER()来检查它是否是第一行。 Something like
就像是
=IIF(ROWNUMBER("yourDatasetName") =1, "#FF0000", Nothing)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.