My DataBase Table Structure is like this :
ID(Primary Key ) , Title (Nvarchar) , ParentID (this is the ID of current table)
and the ‘ParentID’ of first node (root) is valued = -1
i loaded this data in Memory.(for example in a list of class)
how can i add the items with a loop or something else to TreeView ?
I did wrote this code :
how is it?