RDLC 报告中的行着色
实际上,我需要将 2 行着色为一种颜色,然后将下 2 行着色为另一种颜色,或者在 rdlc 报告中。 例如,第一行和第二行应为红色,第三行和第四行应为黄色。同样,第五行和第六行应为红色,第七行和第八行应为黄色......等等。
Actually I need to color 2 row one color and next 2 row another color ,alternatively in rdlc report.
For example 1st and 2nd row should be in red color and 3rd and 4th should be in yellow.Again 5th and 6th should be in red and 7th and 8th should be in yellow ...etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这与您为每个备用行着色时所做的非常相似,您只需要对
Mod
计算进行一些小更改:这尚未经过测试,但应该足以让您继续下去。
查看之前的 SO 帖子以获取更多示例: 添加交替行SQL Server Reporting Services 报告的颜色
It is very similar to what you would do if you were coloring every alternate row, you just need a small change to the
Mod
calculation:This is untested, but should be enough to get you going.
Check this previous SO post for further examples: Add alternating row color to SQL Server Reporting services report