Click here to Skip to main content
15,884,584 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,
I want to display all parent subject upto root by entering child subjectId

in C# ,
SubjectId is itself a parentsubjectId
Posted
Updated 26-Feb-12 22:50pm
v2
Comments
Syed Salman Raza Zaidi 27-Feb-12 5:01am    
Can't understand Elaborate more
[no name] 27-Feb-12 5:04am    
People generally ignore questions that does not make sense. If you want to get real help, explain your question in detail.

1 solution

How the data is represented in your application?.
If you are using Dataset with relations then you can use DataRow.GetParentRow recursively until there is no more parent row.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900