ContentIteartor with listItemColletion.

Hi all,

I have one list on which i am using contentIteartor to fetch the list items which i am returing as ListItemCollection.

But my issue is that the first item which i am getting is Forlder,on which i am not able to get the item columns and not able to perform the operation.So how to skip that first item or how to go the second item  of the list item collection.

i am using Visual studio 2012 with sharepoint 2010.

PLease help me ASAP.

I need urgent reply.

February 12th, 2015 5:01am

Hi,

Assuming that itemCollection represents SPListItemCollection, you can get the count of collection and then start at index 1. Example: 

int itemCount = itemCollection.Count;
for(int i = 1; i <itemCount, i++ )
{
SPListItem item = itemCollection[i];
}

Free Windows Admin Tool Kit Click here and download it now
February 12th, 2015 5:17am

Its nt working

February 12th, 2015 5:42am

Can you share your code. Does the code above throw any error? Please provide more details.
Free Windows Admin Tool Kit Click here and download it now
February 12th, 2015 5:49am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics