I have a list of objects and i want to bind this list with the treeview control my class is as follows
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>();
how can i bind this list into the treeview control. thanks in advance.