基本上,我有一個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