SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Sep 15 '11 at 13:30

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

Your Answer


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

Browse other questions tagged or ask your own question.