blog community

Welcome to blog community Sign in | Join | Help
in Search

Portals & Integration blog

Robert te Kaat and Bart Gunneman on Office, SharePoint, Team System and other random .NET related stuff :)

Disable the toolbar header on a listviewwebpart from code

A few weeks ago I helped out on a project creating some featureeventreceivers to dynamically add webparts to pages. Because of time-restrictions I didn't have the time to look into a weird problem we encountered..

We experienced a problem when adding a listviewwebpart from code in which we don't want to display the toolbar. (aka toolbar = none from the Edit Shared Webpart menu).

Now, my fellow team-system-guru Marcel :-) decided to turn over to the wonderful world of SharePoint and came up with a solution!

On his blog he posted the code-snippet to effectively remove the toolbar from a listviewwebpart. The solution looks like a hack..but apparently this is the only way to achieve this..

Read it here: click

 

Great work Marcel!

 

Published Friday, April 11, 2008 10:14 AM by Bart Gunneman

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

News

Contact

Bart's online status:
If I am online, click to send me a message!

(No messenger needed)


Quick links

Creating a MOSS / Office Demo setup
Using a AD provider on WSS v3

Stats



Statcounter:
Powered by Community Server, by Telligent Systems