DataTable dt1= new DataTable();
dt1.Columns.Add("id", i.GetType());
dt1.Columns.Add("child", i.GetType());
dt1.Columns.Add("parentname");
dt1.Rows.Add("1","0","one");
dt1.Rows.Add("2", "0", "two");
dt1.Rows.Add("3", "0", "three");
dt1.Rows.Add("4", "3", "four");
dt1.Rows.Add("4", "2", "four");
dt1.Rows.Add("5", "3", "five");
dt1.Rows.Add("5", "4", "five");
dt1.Rows.Add("6", "5", "six");
i need output like in tree view
6-----root node
--->5
---->3
---->4
--->2
--->3
please any one help me .. i will give input as 6 to this ..pls help me