Check In\Out Issue on updating XSLTLISTVIEWWEBPART list view from code behind in sharepoint

311 views Asked by At

I am trying to change the current list view using CAML query and then updating the current view .This functionality works fine on pages which does not have check in\out disabled.But I am getting following error message on check in\out enabled pages.

Message : "The file is not checked out. You must first check out this document before making changes".

I am getting above error message at currentview.update() line...... Code behind:

1

There are 1 answers

0
Koen van der Linden On

Probably: The view is on a page. You need to checkout that page before updating the view.

However, I got this error on de WebPartManager.SaveChanges(). Because that saves the changes to the page, where the webparts is placed on.