基本上,我有一个Foo
s的集合。有没有什么办法在一个列表视图中嵌套分组?或者我必须使用TreeView?
public class Foo
{
public string Section { get; set; }
public string SubSection { get; set; }
public string item { get; set; }
}
我希望我的Foo按Section,然后按SubSection分组。
Section A
Section A1
- Item A1.0
- Item A1.1
Section A2
- Item A2.0
- Item A2.1
- Item A2.2
Section B
... etc