About      |       Articles      |      Services      |      Software      |      Contact

Latest Free SharePoint Software

ARB Security Solutions regularly releases free SharePoint software, including WebParts, Client Applications, Framework Extensions, and other Miscellaneous Components.
The most recent freeware is:

Title: Simple SharePoint Rollup WebPart
Date Published: 10/22/2009

Previous Two Free WebPart Releases:

SecureCenter For SharePoint

By SharePoint security integrators, for SharePoint security integrators.

SharePoint Security Assurance Program™

For externally facing SharePoint deployments, security is an acutely important deployment concern. Learn how through daily security scanning, you can ensure external business users and partners that they can collaborate in confidence!

Security Assurance WebPart:



Updating A View Name With An Event Receiver

There was a question in the newsgroups regarding updating / altering a view name of a list through code when in an event handler. The solution is actually pretty simple, you can use the following code within the event handler in order to adjust the name of the view by passing in some simple parameters. The parameters that it takes are pretty straightforward, all it takes at the ID of the list that is going to be changed, the ID of the view that is going to be changed, along with the new name of the view that you want to apply. You have to get a reference of the list that you are wanting to adjust by passing in the ID of the list, and then get a reference to the view by passing view ID. Once you have that, you can adjust the Title property of the SPView object, then just update the view.

C#:
  1. public void UpdateViewName(Guid listID, Guid viewID, string newViewName)
  2. {
  3. SPList oList = web.Lists[listID];
  4. SPView oView = oList.Views[viewID];
  5. oView.Title = newViewName;
  6. oView.Update();
  7. }

Hope this helps someone.

  • Share/Bookmark

1 Comment »

  1. [...] Updating A View Name With An Event Receiver [...]

    Pingback by Links (7/22/2007) « Steve Pietrek’s SharePoint Stuff — July 23, 2007 @ 4:46 am

RSS feed for comments on this post. TrackBack URL

Leave a comment