【发布时间】:2009-08-22 13:16:14
【问题描述】:
我需要将字符串集合中的字符串集合绑定到 DataGrid (Infragistics)。
但是,当我这样绑定它时:
<DataPresenter:XamDataGrid x:Name="xamDataGrid" DataSource="{Binding TheCollection}">
到此:
public List<string[]> TheCollection
或者这个:
public List<List<string>> TheCollection
我明白了:
我需要使用哪种 .NET 类型才能在集合中将这个集合显示为网格,即像这样:
bank11 1111111
bank12 2222222
我不能使用自定义对象,因为它被一个不能引用其他模块并且必须接受简单 .NET 类型的模块使用。
【问题讨论】: