0

I have about 1000 items in a custom list. i want to retrieve 10 only from a certain position, (i know how to do this).

I also want to get the total in the list.

How would i do this? (this is for custom paging)

1 Answer 1

0

Have you tried getting the list and using SPList.Items.Count?

There is also an SPList.ItemCount property that includes folders as items in the count...

4
  • This needs to be selected before the query limits the list. Afterwards it acts as an amount with the RowLimit as the maximum amount.
    – Hugh Wood
    Nov 15, 2012 at 17:02
  • @HughWood is this additional information or are you saying this isn't a valid answer? Nov 15, 2012 at 18:42
  • Not at all, I am saying that I am putting a caveat on Item Count. If it wasn't valid I would of down voted.
    – Hugh Wood
    Nov 16, 2012 at 8:19
  • @HughWood definitely. I was just unsure where you were going with that. Nov 16, 2012 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.