使用平面数据集在 RDLC 中交替行颜色 [英] Alternate row colors in RDLC using flat dataset

查看:41
本文介绍了使用平面数据集在 RDLC 中交替行颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用平面(单行数据源)的 rdlc 报告中使用 tablix,但是显示的值在多行中.我需要为相同的行添加替代行着色,我无法使用 RowNumber,因为我正在处理平面数据集.我可以采取任何其他方法吗?TIA

I am using a tablix in an rdlc report which uses a flat (Single row datasource), however the values which are displayed are in multiple rows. I need to add alternate row coloring for the same,I cannot use a RowNumber as I am working off a flat dataset. Are there any other approaches I can take ? TIA

推荐答案

将行的背景颜色更改为以下表达式,更改数据集名称和颜色选择.

Change the Background color for the row to the following expression, changing the data set name and color choices.

=IIF(RowNumber("AdverseEventsDataSet") mod 2 = 0,"Silver","LightGrey")

这篇关于使用平面数据集在 RDLC 中交替行颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆