This question is locked. New answers and comments are not allowed.
Hello
I have a model which looks like this:
If the ParentID is null then that AccountName is a the root level, if ParentID contains some data, i.e. ParentID == ID then that row/Account is the child of that ParentID.
I have looked up a numerous examples on TreeView unfortunately I can only show all the rows as root of the Treeview, no sub nodes are being created.
Any help will be much appreciated!
Thanks
I have a model which looks like this:
public partial class ChartOfAccount{ public string ID { get; set; } public string ParentID { get; set; } public string AccountName { get; set; }}If the ParentID is null then that AccountName is a the root level, if ParentID contains some data, i.e. ParentID == ID then that row/Account is the child of that ParentID.
I have looked up a numerous examples on TreeView unfortunately I can only show all the rows as root of the Treeview, no sub nodes are being created.
Any help will be much appreciated!
Thanks