Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to divide or breakdown an SPListItemCollection into several SPListItemCollection or alternative ways

$
0
0

I have this SPQuery that will retrieve items.

I will also set a limit per batch. for example, my limit per batch is 1000

and if my SPQuery returned 10100 items, my SPListItemCollection.Count = 10100.

Now, since I have set my limit per batch then I will have 11 batch (10 batch will compose of 1000 items, and 1 batch will compose of 100 items = total of 11 batches).

My question is how will I create 11 batches of SPListItemCollection dynamically, I want to use SPListItemCollection since it has a methodGetDataTable()

can someone show me a solution for this? THANKS!


----------------------- Sharepoint Newbie


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>