【发布时间】:2010-05-19 21:12:49
【问题描述】:
我有一个包含一些属性的类,其中一个是子对象的 List。
简单示例:
public class LineItem
{
public string Name { get; set; }
public decimal Amount { get; set; }
}
public class Invoice
{
public string Name { get; set; }
public DateTime CreatedDate { get; set; }
public List<LineItem> LineItems { get; set; }
public Invoice() { ... }
}
我正在尝试将此对象(示例中的发票)绑定到 Crystal Report(使用 VS2008 水晶报表设计器),当我在字段资源管理器中显示简单属性(名称、CreatedDate)时,子集合没有.我曾尝试使用 ArrayList(如建议的那样 (How can I use strongly typed lists as the datasoruce for a Crystal Reports),但没有奏效。
【问题讨论】:
标签: c# visual-studio-2008 crystal-reports