Hi,
I am stuck with this problem. I have a sharepoint list with two views
1.all Items
2. Personal view: only administrator can see this view
when admin login to site he will be shown the allitems view by default. so i want to set the personal view as default view to administrator.
AllItems views as default view to other users..
Loading

Mahesh ChandRank #1 · 393.3K reputationPosted Jun 14, 2011, 4:29 AM EDT
Alternatively, probably a time consuming way. You can create two WebParts, one that displays all items and other that is personal view. When user type is admin, it will load first WebPart and otherwise.
Destin JoyRank #63 · 26.6K reputationPosted Jun 14, 2011, 6:22 AM EDT
Easy method is ask your admin to create a personal view and check the option to make this as their default view
another way
Create a webpart page and put your list as webpart and set view as you mentioned for admin then make it target audience to Admin group.In the same page add same copy of list as webpart with view to general make this target to general
ramaraju srinivas22 reputationPosted Jun 15, 2011, 1:33 AM EDT
Your solution worked is there a way of performing the task using object model
Regards,
Srinivas
ramaraju srinivas22 reputationPosted Jul 27, 2011, 6:52 AM EDT