0

I have taken the data in ListItemCollection from SharePoint client object.

Now I am looking for some solution by which I can remove some rows(ListItem) temporary from ListItemCollection based on some column value.

This should delete rows from ListItemCollection which is in memory not from Sharepoint list.

Thanks.

Gourav
  • 1
  • 1
  • Why not just populate a new ListItemCollection with the ones you want returned from SharePoint – Ryan Wilson May 10 '18 at 12:56
  • If I again populate then I need to hit sharepoint again where I am already taken the data. So it will hamper the performance as it takes 3 seconds to get the data from SP. – Gourav May 10 '18 at 13:00
  • I meant take the listitemcollection you are getting from sharepoint and filter that list into a new list – Ryan Wilson May 10 '18 at 13:02
  • If I filter the listitemcollection, it returns IEnumerable on which I can not perform delete operation on memory collection. – Gourav May 10 '18 at 13:07

0 Answers0