在Winforms C中的rdlc中应用条件 [英] Apply conditions in rdlc in winforms c#

查看:72
本文介绍了在Winforms C中的rdlc中应用条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我有一个rdlc报告,可以绑定到各种数据集.
该报告有多个部分,例如个人详细信息",办公室详细信息"....
每个部分均以矩形显示,其中有许多文本框.
Evey的事情已经在设计模式下完成了.
数据是根据ID提取的.
现在根据当前要求,如果同一个人有2个ID,则在数据库中我有2个个人详细信息,2个OfficeDetails ...
所以在rdlc中我必须显示like-
ID_1的PersonalDetails
ID_2的个人详细信息

ID_1的OfficeDetails
ID_2的OfficeDetails

...对于ID_1
...同样适用于ID_2

所以我需要动态显示第二部分吗? 请帮助

Hello,
i have a rdlc report which in bind to various dataset.
The report has various sections like Personal Details,Office Details....
Each of these sections are displayed in rectangle where in have many textboxes.
Evey thing has been done in design mode.
The data is fetched based on ID.
Now as per the current requirement if the same person has 2 IDs,then in database i have 2 personal-details,2OfficeDetails...
So in the rdlc i have to display like-
PersonalDetails for ID_1
PersonalDetails for ID_2

OfficeDetails for ID_1
OfficeDetails for ID_2

...for ID_1
...for ID_2 similarly

so do i need to display the 2nd section dynamically ???
Please Help

推荐答案

可以将整个部分放在
列表中的PersonalDetails
列表中的OfficeDetails
并按ID对列表进行分组.即转到列表"的属性,然后通过选择ID进行分组.

因此它将在组"中显示详细信息.
can put the entire section i.e
PersonalDetails inside a List
OfficeDetails inside a List
and group the list by ID. i.e go to the property of List then group by select the Id.

so it will display the details in Group.


可以将整个部分,即
列表中的PersonalDetails
列表中的OfficeDetails
并按ID对列表进行分组.即转到列表"的属性,然后通过选择ID进行分组.

因此它将在组中显示详细信息.
can put the entire section i.e
PersonalDetails inside a List
OfficeDetails inside a List
and group the list by ID. i.e go to the property of List then group by select the Id.

so it will display the details in Group.


这篇关于在Winforms C中的rdlc中应用条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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