I am very new to C#. I need to create a Windows Form that will read a SQL 2005 table and populate a treeview. I can connect to the DB, create the dataadapter, populate a data set. The problem is how to use the dataset to populate a treeview.
I have not found a Windows Forms C# example that can handle an un specified level of node nesting and Parent = Child see child rows 15.
I would really appreciate the help.
Thank you.
I have a SQL Server 2005 table containing this data shown below.
Child...Parent...Depth.....Hierarchy1.........NULL.....0.........012..........1.......1..........01.025..........2.......2..........01.02.056..........2.......2..........01.02.063..........1.......1..........01.037..........3.......2..........01.03.0711.........7.......3..........01.03.07.1114.........11......4..........01.03.07.11.1412.........7.......3..........01.03.07.1213.........7.......3..........01.03.07.138..........3.......2..........01.03.089..........3.......2..........01.03.094..........1.......1..........01.0410.........4.......2..........01.04.1015.........NULL....0..........1515.........15......1..........15.1516.........15......1..........15.1618.........16......2..........15.16.1817.........15......1..........15.17