Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a Project Task list in Sharepoint that contains Summary Tasks, which contain Tasks. What I would like to do, is to check which task items of this list are children elements of which summary task items. I know we can check the type of the item with SPListItem.ContentType, but i can't see any way to get the hierachy of the items. The is the SPListItem.Xml field which kind of helps, but maybe there is a simpler way? Perhaps casting SPListItem to some type, unfortunately I haven't found any information about that. Any help would be appreciated.

edit: I found that the querystring for tasks contains RootFolder parameter, it is quite helpful, still maybe someone has a better approach

share|improve this question

migrated from stackoverflow.com Sep 15 '11 at 13:30

This question came from our site for professional and enthusiast programmers.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.