SSRS - how to check if a row is toggled or visible?

随声附和 提交于 2019-12-08 03:59:22

问题


I have a drill-down report in SSRS 2008 and I want to do some conditional formatting on the main row. For example, if it's not toggled add a different background color and different border.

I haven't been able to figure out how I can check if the current row is expanded or not using an expression.


回答1:


There is a trick(check the result to see if it's ok for you. this solutions leaves a small space when the group is expanded) :

Add an extra column at the left for expand collapse.

Add a second row in the group with color.

Set expand/collapse only to the first row textbox

In the expand/collapse column set the second row textbox visibility to hidden.

Set the first controls(only at the textboxes) visibility to visible and the second to hidden, except the column with expand collapse. Set the first row textbox as the toggle item

Set both rows height to 0 (althought is will be automatically set to a very small value)

Now your report should look like the image below



来源:https://stackoverflow.com/questions/7456461/ssrs-how-to-check-if-a-row-is-toggled-or-visible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!