理论上基本的 RDLC 组和子组

发布于 2024-08-28 08:25:26 字数 503 浏览 3 评论 0原文

我正在尝试做一些我认为应该相当简单的事情,但我一直失败......也许我只是需要更多咖啡,但我想我看看是否有其他人已经解决了这个问题。

我有一份报告,其中包含一堆行。

  1. 我希望该行按称为办公室的一列分组显示。
  2. 我希望办公室组按其列区域排序。
  3. 我希望办公室组中的行按列名称排序。

所以它会像这样显示

Region1
 Agency a
  a
  b
  c
 Agency b
  a
  b
Region 2
 Agency a1
  a
  b
  c
 

等等......

我可以得到分组,我可以得到按区域排序的组。

但我无法按名称对组的内容进行排序。

我目前的猜测是按办公室分组 然后在排序选项卡中,按地区排序,然后是办公室,然后是名称。没有喜悦。

任何帮助表示赞赏。

如果相关的话我使用c#和vs2008。

谢谢,

E-

I'm trying to do something that I thought ought to be reasonably simple but I keep failing... Maybe I just need more coffee, but I thoguht i see if anyone else has solved the problem already.

I've got a report, it contains a pile off rows.

  1. I want the row to show up grouped by one column called office.
  2. I want the groups of offices sorted by their column region.
  3. I want the rows within the office group sorted by column name.

so it'd show up like this

Region1
 Agency a
  a
  b
  c
 Agency b
  a
  b
Region 2
 Agency a1
  a
  b
  c
 

etc...

I can get the grouping, I can get the groups sorted by region.

but I can't get the contents of the group to be sorted by name.

my curret guess was Group by Office
then in the sort tab, sort by region, then office, then name. no joy.

Any help is appreciated.

if it's relavant I'm using c# and vs2008.

Thanks,

E-

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半﹌身腐败 2024-09-04 08:25:26

我经常在 rdl/rdlc 中排序时遇到问题,最终不得不对进入报告的数据进行排序才能使其正确显示。有时,如果您对每个组添加排序也会有所帮助。因此,对于您的区域组,您需要添加所有排序。然后在Office组上也添加排序。

I often have problems with sorting in the rdl/rdlc and end up having to sort the data that is coming to the report to get it to show up correct. Also sometimes it helps if you add sorting on every group. So for your Region group you'd add all the sorting. Then on the Office Group also add sorting.

灯下孤影 2024-09-04 08:25:26

尝试将排序放入表格中,它对我有用

Try putting the sort in the table, it worked for me

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文