开发者

How to set OrderedView of the list view programmatically

开发者 https://www.devze.com 2023-03-07 11:29 出处:网络
I am trying to modify the List View of Link list in SharePoint 2010. What I need to do is to allow/disallow users to order item of Link list programmatically. We can do this easily using SharePoint br

I am trying to modify the List View of Link list in SharePoint 2010. What I need to do is to allow/disallow users to order item of Link list programmatically. We can do this easily using SharePoint browser.

How to do this using SharePoint UI. Goto List->Modify Views. There is "Sort" option "Allow users to order items in this view? ".

But I need to do this programmatically and the accessor "SPView.OrderedView" is read only so I am struc开发者_如何学JAVAk.

I can however change the sorting columns using CAML.

Any suggestion will be greatly appreciated.

Thanks Prakash Tandukar


There is a similar thread of MSDN Forums - Ordering View Programmatically. Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消