2

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 hierarchy of the items. The is the SPListItem.XML field which kind of help, 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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.