2012-05-22 55 views
1

我有对象 的名单,我想结合这个名单与TreeView控件创建树状 我的课是如下使用列表作为数据源

public class Tax 
{ 
    public string TaxName { get; set; } 
    public string TaxPresentationId { get; set; } 
    public string ParentTaxName { get; set; } 
    public string PresentationTaxName { get; set; } 
    public string RoleURl { get; set; } 
    public List<Tax> Child { get; set; } 

    public Tax() 
    { 
     Childrens = new List<Tax>(); 
    } 
} 

我有一个列表中的所有数据

List<Tax> lstreportdata = new List<Tax>(); 

如何将此列表绑定到树视图控件中。 在此先感谢。

+0

是肯定的人,但请首先回答这个问题 –

+0

您可以使用这个树视图来查看它的一个Jquery树获取数据源并填充一棵树http://www.blueshoes.org/_bsJavascript/components/tree/examples/ example_json.html – mehmood

+0

谢谢mehmood,但我需要使用asp.net treeview控件 –

回答

相关问题