mahendraprabu 0 Newbie Poster
DataTable dt1= new DataTable();

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
5
3
4
2
3

please any one help me .. i will give input as 6 to this ..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.