Hi all,
I'm currently having a web part which displays items pulled from a list in a ASP.NET grid view.
My requirements -
- Provide pagination in gridview, just Next and Prev (datasource should be paged too)
- Provide filtering option
I already knew that we can do the paging while retrieving the items using ListItemCollectionPosition property of SPQuery.
But I'm finding it impossible to build the paging info when I've the following scenarios -
- When some items are deleted in the list (so item IDs are not continuous)
- When items are filtered
In the above two scenarios I believe it is impossible to identify the p_ID in the PagingInfo correctly. Any ideas how to achieve this? Or can we say that pagination at the list items level is not possible under all scenarios?
How does a list view page automatically append the necessary information in the query parameters? How SharePoint is doing it?
Already referred -
http://charliedigital.com/2010/02/05/paging-with-splistitemcollectionposition/
NLV - MCTS - Blog - Twitter - In