Rdlc Report Grouping without repeating data

风流意气都作罢 提交于 2019-12-13 15:17:25

问题


I'm replicating a report from a legacy system

the report does grouping like this

Name      Number    Vocation
Bob         1         Farmer
Dave        2         Farmer
                      Banker

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"

is there anyway to replicate this behavior in RDLCs?

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.


回答1:


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.



来源:https://stackoverflow.com/questions/16569109/rdlc-report-grouping-without-repeating-data

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