how can I fill treeview by self-referencing table ?

Jun 25 2009 1:31 PM
Hi,

I have a table contains :

ID , AccountParentID , AccountNumber , AccountName

this table is self-refrenced , I want to populate data of this table in treeview .

the most important thing is that the root ID = 1 and the root AccountParentID = 1 too .. and I cant change its parent to 0 or something else because of the group I work with ..

So, I want a way to populate the treeview in this case THE ROOT NODE IS PARENT OF ITSELF.

Thanks in advance...

Answers (1)