如何在VS Report Viewer 2010中显示子集合?

时间:2021-01-29 08:22:24

I have a collection which is the datasource of the report.
And a object of that collection contains again a collection as a property.

我有一个集合,它是报告的数据源。并且该集合的对象再次包含集合作为属性。

How can i display this child collection in the report?

如何在报告中显示此子集合?

Tried to add the child collection as a second datasource. But i need values of the associated parent and child class for a calculation.

试图将子集合添加为第二个数据源。但我需要关联的父类和子类的值进行计算。

1 个解决方案

#1


0  

One way would be to create a subreport and filter the related data on the SubreportProcessing event.

一种方法是创建子报表并过滤SubreportProcessing事件上的相关数据。

#1


0  

One way would be to create a subreport and filter the related data on the SubreportProcessing event.

一种方法是创建子报表并过滤SubreportProcessing事件上的相关数据。