不重复数据的 Rdlc 报表分组 [英] Rdlc Report Grouping without repeating data

查看:43
本文介绍了不重复数据的 Rdlc 报表分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从旧系统复制报告

I'm replicating a report from a legacy system

报告按这样分组

Name      Number    Vocation
Bob         1         Farmer
Dave        2         Farmer
                      Banker

RDLC 在默认情况下会像这样分组

Where as RDLCs do grouping like this by default

Name      Number    Vocation
Bob         1         Farmer
Dave        2         Farmer
Dave        2         Banker

重复整行,而不仅仅是有趣的部分"

Repeating the entire row, not just the "interesting bits"

有没有办法在 RDLC 中复制这种行为?

is there anyway to replicate this behavior in RDLCs?

我可以想办法通过在 c# 中按摩数据来伪造它,因此职业看起来像Farmer\nBanker",但我想找到更好的解决方案.

I can think of a way to fake it by massaging the data in the c# so vocation looks like this "Farmer\nBanker", but I'd like to find a better solution.

推荐答案

隐藏重复项属性设置为您的数据集名称解决了我的问题.

Hide duplicates property set to the name of your dataset solved my issue.

我必须手动选择所有详细信息行的所有文本框并通过属性窗口更改它..

I had to select all the text boxes for all of the detail rows manually and change it via the properties window..

为了让我的第二个详细信息行上的标签重复,我将这些单元格上的隐藏重复属性更改为组",然后标签仅显示在非重复行上.

To get labels on my 2nd detail row to repeat, I changed the Hide Duplicates property on those cells only to "group", and then the labels showed up on non repeating rows only.

要获得隐藏重复项"属性,您需要打开属性"窗口并选择行、组或单元格.

To get the Hide Duplicates property you need to have the Properties window open and have the row, group or cells selected.

这篇关于不重复数据的 Rdlc 报表分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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