RDLC报告排序头
有没有办法为 rdlc 报告中的排序结果提供标题。例如 对于
姓名 职业
- Allan K, - 程序员
- David M, - 网络员
- Irene N, - 程序员
- Moses X, - 网络员
- Gerad Z, -
当我按职业排序时,数据库,我应该get
Programmer
- Allan K Prog
- Irene N Prog
Networker
- David M Netw
- Moses X Netw
Database
- Gerad Z Data
注意:已排序的项目位于标题(程序员、网络和数据库)下。我怎样才能做到这一点?
Is there a way to provide headers for the results of a sort in rdlc reports. e.g.
for
Names Profession
- Allan K, - Programmer
- David M, - Networker
- Irene N, - Programmer
- Moses X, - Networker
- Gerad Z, - Database
when i sort by Profession, i should get
Programmer
- Allan K Prog
- Irene N Prog
Networker
- David M Netw
- Moses X Netw
Database
- Gerad Z Data
NOTE: that the sorted items are under headers (Programmer, Network and Database). How can i achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我实际上找到了我的问题的答案。数据位于表格或矩阵中。我所做的是将矩阵放入列表中,并将列表设置为按专业分组并按专业排序。然后我将矩阵行设置为按名称分组并按职业排序。所发生的情况是,每个职业的矩阵都会重复出现。至于标题,我将矩阵的左上角单元格设置为
=Fields!Profession.Value
I actually found the answer to my question. The data is in a table or matrix. What I did was put the matrix in a List and set the List to group by Profession and sort by Profession. Then I set the matrix rows to group by Names and sort by Profession. What happens is that the matrix repeats itsself for every Profession. As for the header, I set the top-left cell of the matrix to
=Fields!Profession.Value
您可以在属性窗口中使用 UserSort 属性作为标题,并在该窗口下将 SortExpression 属性设置为
=Fields!Profession.Value
You Can use UserSort property for header in properties window and under that you set SortExpression property to
=Fields!Profession.Value