<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Nick Grattan's SharePoint Blog</title>
	<atom:link href="http://nickgrattan.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nickgrattan.wordpress.com</link>
	<description>About Microsoft SharePoint and some .NET</description>
	<lastBuildDate>Tue, 24 Jan 2012 11:17:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='nickgrattan.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Nick Grattan's SharePoint Blog</title>
		<link>http://nickgrattan.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://nickgrattan.wordpress.com/osd.xml" title="Nick Grattan&#039;s SharePoint Blog" />
	<atom:link rel='hub' href='http://nickgrattan.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SharePoint 2010 – Provisioning User Profile Synchronization</title>
		<link>http://nickgrattan.wordpress.com/2011/11/03/sharepoint-2010-%e2%80%93-provisioning-user-profile-synchronization/</link>
		<comments>http://nickgrattan.wordpress.com/2011/11/03/sharepoint-2010-%e2%80%93-provisioning-user-profile-synchronization/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 09:12:39 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=558</guid>
		<description><![CDATA[Configuring AD synchronization with SharePoint 2010 can be problematic. Here&#8217;s a great post on how to configure the services, including ForeFront Identity Manager: http://blogs.msdn.com/b/russmax/archive/2010/03/20/sharepoint-2010-provisioning-user-profile-synchronization.aspx<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=558&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Configuring AD synchronization with SharePoint 2010 can be problematic. Here&#8217;s a great post on how to configure the services, including ForeFront Identity Manager:</p>
<p><a href="http://blogs.msdn.com/b/russmax/archive/2010/03/20/sharepoint-2010-provisioning-user-profile-synchronization.aspx">http://blogs.msdn.com/b/russmax/archive/2010/03/20/sharepoint-2010-provisioning-user-profile-synchronization.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/558/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=558&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/11/03/sharepoint-2010-%e2%80%93-provisioning-user-profile-synchronization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010 Foundation, Server Service Pack 1 for Download</title>
		<link>http://nickgrattan.wordpress.com/2011/07/01/sharepoint-2010-foundation-server-service-pack-1-for-download/</link>
		<comments>http://nickgrattan.wordpress.com/2011/07/01/sharepoint-2010-foundation-server-service-pack-1-for-download/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 12:53:25 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=551</guid>
		<description><![CDATA[Here&#8217;s information on SP1 for SharePoint 2010 Foundation http://support.microsoft.com/kb/2460058. Download from here: http://www.microsoft.com/download/en/details.aspx?id=26640 And for SP1 for SharePoint Server (Enterprise and Standard) information http://support.microsoft.com/kb/2460045. Download from: http://www.microsoft.com/download/en/details.aspx?displaylang=en&#38;id=26623 &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=551&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s information on SP1 for SharePoint 2010 Foundation <a href="http://support.microsoft.com/kb/2460058">http://support.microsoft.com/kb/2460058</a>. Download from here: <a href="http://www.microsoft.com/download/en/details.aspx?id=26640">http://www.microsoft.com/download/en/details.aspx?id=26640</a></p>
<p>And for SP1 for SharePoint Server (Enterprise and Standard) information <a href="http://support.microsoft.com/kb/2460045">http://support.microsoft.com/kb/2460045</a>. Download from: <a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=26623">http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=26623</a></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/551/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=551&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/07/01/sharepoint-2010-foundation-server-service-pack-1-for-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Diagnostic Studio</title>
		<link>http://nickgrattan.wordpress.com/2011/07/01/sharepoint-diagnostic-studio/</link>
		<comments>http://nickgrattan.wordpress.com/2011/07/01/sharepoint-diagnostic-studio/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 12:41:56 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration]]></category>
		<category><![CDATA[SharePoint Tools]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=544</guid>
		<description><![CDATA[Talking of tools (see Favorite SharePoint Development Tools), the SharePoint Diagnostic Studio from Microsoft provides SharePoint performance monitoring functionality. This tool is particularly useful for consolidating the ULS records across servers in a SharePoint server farm. It&#8217;s part of the Microsoft SharePoint 2010 Administration Toolkit v2.0. While useful, the user interface is not particularly polished [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=544&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Talking of tools (see <a href="http://nickgrattan.wordpress.com/2011/06/30/favorite-sharepoint-development-tools/" target="_blank">Favorite SharePoint Development Tools</a>), the SharePoint Diagnostic Studio from Microsoft provides SharePoint performance monitoring functionality. This tool is particularly useful for consolidating the ULS records across servers in a SharePoint server farm. It&#8217;s part of the Microsoft SharePoint 2010 Administration Toolkit v2.0.</p>
<p>While useful, the user interface is not particularly polished or easy to use. In particular, the SharePoint Diagnostic Studio<strong><em> </em></strong><strong>must </strong>be run with the language set to &#8220;US-English&#8221;, otherwise date formats will be presented incorrectly and date/time filtering will not work.</p>
<p>Overall Description: <a href="http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=971" rel="nofollow">http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=971</a></p>
<p>Download from: <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=718447d8-0814-427a-81c3-c9c3d84c456e&amp;displaylang=en" rel="nofollow">http://www.microsoft.com/downloads/en/details.aspx?FamilyID=718447d8-0814-427a-81c3-c9c3d84c456e&amp;displaylang=en</a></p>
<p>Documentation: <a href="http://technet.microsoft.com/en-us/library/hh144782.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/hh144782.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/544/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/544/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/544/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=544&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/07/01/sharepoint-diagnostic-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>
	</item>
		<item>
		<title>Favorite SharePoint Development Tools?</title>
		<link>http://nickgrattan.wordpress.com/2011/06/30/favorite-sharepoint-development-tools/</link>
		<comments>http://nickgrattan.wordpress.com/2011/06/30/favorite-sharepoint-development-tools/#comments</comments>
		<pubDate>Thu, 30 Jun 2011 13:06:06 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Tools]]></category>
		<category><![CDATA[SharePoint Development]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=541</guid>
		<description><![CDATA[Here’s a four free development tools you shouldn’t start a SharePoint development project without: CAML Builder from U2U (http://www.u2u.be/Res/Tools/CamlQueryBuilder.aspx): Build and test your CAML queries and paste into your code. CKS (Community Kit for SharePoint, Tools Edition) (http://cksdev.codeplex.com/ ): Makes the SharePoint development cycle tolerable (almost). Version 2 was released May 2011. ULS Viewer (http://archive.msdn.microsoft.com/ULSViewer [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=541&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here’s a four free development tools you shouldn’t start a SharePoint development project without:</p>
<ul>
<li><strong>CAML Builder from U2U </strong>(<a href="http://www.u2u.be/Res/Tools/CamlQueryBuilder.aspx">http://www.u2u.be/Res/Tools/CamlQueryBuilder.aspx</a>): Build and test your CAML queries and paste into your code.</li>
<li><strong>CKS (Community Kit for SharePoint, Tools Edition)</strong> (<a href="http://cksdev.codeplex.com/">http://cksdev.codeplex.com/</a> ): Makes the SharePoint development cycle tolerable (almost). Version 2 was released May 2011.</li>
<li><strong>ULS Viewer </strong>(<a href="http://archive.msdn.microsoft.com/ULSViewer">http://archive.msdn.microsoft.com/ULSViewer</a> ) In my opinion, the best.</li>
<li><strong>SharePoint Manager</strong> (<a href="http://spm.codeplex.com/">http://spm.codeplex.com/</a>). Invaluable for browsing a SharePoint farm, viewing and changing parameters and option.</li>
</ul>
<p>For uploading single or groups of files from the desktop or mail messages from Outlook I use, of course, our “SPDrag&amp;Drop” tool. Take a trial by downloading from here: <a href="http://www.nickgrattan.net/SPDragDrop/ProductInfo.aspx">http://www.nickgrattan.net/SPDragDrop/ProductInfo.aspx</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/541/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/541/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/541/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=541&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/06/30/favorite-sharepoint-development-tools/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>
	</item>
		<item>
		<title>Opening Web Parts Gallery Programmatically</title>
		<link>http://nickgrattan.wordpress.com/2011/06/23/opening-web-parts-gallery-programmatically/</link>
		<comments>http://nickgrattan.wordpress.com/2011/06/23/opening-web-parts-gallery-programmatically/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 12:21:31 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Object Model]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=534</guid>
		<description><![CDATA[Navigating to the Web Part Gallery in the browser interface takes you to http://site collection URL/_layouts/_catalogs/wp/Forms/AllItems.aspx. Attempting to open the list through “_catalogs/wp” will fail:  Instead, you need to use the following code: Reference: http://meiyinglim.blogspot.com/2007/10/programatically-organizing-web-parts-in.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=534&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Navigating to the Web Part Gallery in the browser interface takes you to http://site collection URL/_layouts/_catalogs/wp/Forms/AllItems.aspx. Attempting to open the list through “_catalogs/wp” will fail:</p>
<p><pre class="brush: csharp;">

SPList spWPG = spWeb.Lists[&quot;_catalogs/wp&quot;];  // does not work

</pre></p>
<p> Instead, you need to use the following code:</p>
<p><pre class="brush: csharp;">

SPList spWPG = spWeb.Lists[&quot;Web Part Gallery&quot;];

</pre></p>
<p>Reference: <a href="http://meiyinglim.blogspot.com/2007/10/programatically-organizing-web-parts-in.html">http://meiyinglim.blogspot.com/2007/10/programatically-organizing-web-parts-in.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/534/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=534&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/06/23/opening-web-parts-gallery-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint Global Resource (resx) file locations</title>
		<link>http://nickgrattan.wordpress.com/2011/05/24/sharepoint-global-resource-resx-file-locations/</link>
		<comments>http://nickgrattan.wordpress.com/2011/05/24/sharepoint-global-resource-resx-file-locations/#comments</comments>
		<pubDate>Tue, 24 May 2011 12:53:58 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration]]></category>
		<category><![CDATA[SharePoint General]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=528</guid>
		<description><![CDATA[Global resource (resx) files are stored in the following locations in SharePoint 2010: App_GlobalResources folder in the VirtualDirectories folder in inetpub (e.g. C:\inetpub\wwwroot\wss\VirtualDirectories\80) Resources folder in the 14 hive (e.g. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Resources) Config/Resources folder in the 14 hive (e.g. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\Resources) In general, a single resx file [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=528&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Global resource (resx) files are stored in the following locations in SharePoint 2010:</p>
<ul>
<li><strong>App_GlobalResources</strong> folder in the VirtualDirectories folder in inetpub (e.g. C:\inetpub\wwwroot\wss\VirtualDirectories\80)</li>
<li><strong>Resources </strong>folder in the 14 hive (e.g. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Resources)</li>
<li><strong>Config/Resources</strong> folder in the 14 hive (e.g. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\Resources)</li>
</ul>
<p>In general, a single resx file in your solution should be copied into each of these locations during installation.  This is how they are used:</p>
<ul>
<li>Resources files in <strong>App_GlobalResources</strong> are used when code in an ASPX page refers to a resource, e.g.</li>
</ul>
<p><pre class="brush: csharp;">

&lt;asp:Label ID=&quot;lblNumberingTitle&quot; runat=&quot;server&quot; Text=&quot;&lt;%$Resources:GlobalSiteResources, AutoNameTitle %&gt;&quot; /&gt;

</pre></p>
<ul>
<li>Resources files in the <strong>Resources</strong> folder are used when referencing resources using the SharePoint object model, e.g.</li>
</ul>
<p><pre class="brush: csharp;">

btnExport.Text = SPUtility.GetLocalizedString(&quot;$Resources:GlobalSiteResources, Tab_Export&quot;, &quot;GloablSiteResources&quot;, language);

</pre></p>
<ul>
<li>Resources files in the <strong>Config/Resources</strong> are copied into the <strong>App_GlobalResources</strong> folder whenever a new web application is created. By adding the resx files here you will ensure your application will be able to access its global resource files in new web applications.</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/528/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/528/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/528/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=528&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/05/24/sharepoint-global-resource-resx-file-locations/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>
	</item>
		<item>
		<title>Chart Web Part: Hiding &#8220;Data &amp; Appearance&#8221; and &#8220;Advanced Properties&#8221;</title>
		<link>http://nickgrattan.wordpress.com/2011/02/15/chart-web-part-hiding-data-appearance-and-advanced-properties/</link>
		<comments>http://nickgrattan.wordpress.com/2011/02/15/chart-web-part-hiding-data-appearance-and-advanced-properties/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 19:40:47 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Power User]]></category>
		<category><![CDATA[Web Parts]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=517</guid>
		<description><![CDATA[The &#8220;Chart Web Part&#8221; shipped with SharePoint 2010 does a reasonable job of displaying graphs. However, when added to a web part page, it displays &#8220;Data &#38; Appearance&#8221; and &#8220;Advanced Properties&#8221; links which can be annoying: The links cannot be hidden through the web part configuration user interface. Instead you need to: Open the ASPX [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=517&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The &#8220;Chart Web Part&#8221; shipped with SharePoint 2010 does a reasonable job of displaying graphs. However, when added to a web part page, it displays &#8220;Data &amp; Appearance&#8221; and &#8220;Advanced Properties&#8221; links which can be annoying:</p>
<p><a href="http://nickgrattan.files.wordpress.com/2011/02/cwp01.png"><img class="aligncenter size-full wp-image-518" title="CWP01" src="http://nickgrattan.files.wordpress.com/2011/02/cwp01.png?w=700" alt=""   /></a></p>
<p>The links cannot be hidden through the web part configuration user interface. Instead you need to:</p>
<ol>
<li>Open the ASPX page in Microsoft SharePoint Designer 2010.</li>
<li>Locate the Chart Web Part in Code View.</li>
<li>Edit the ShowToolbar property from &#8220;True&#8221; to &#8220;False&#8221;.</li>
<li>Save changes.</li>
</ol>
<p><a href="http://nickgrattan.files.wordpress.com/2011/02/cwp02.png"><img class="aligncenter size-full wp-image-519" title="CWP02" src="http://nickgrattan.files.wordpress.com/2011/02/cwp02.png?w=700&#038;h=42" alt="" width="700" height="42" /></a></p>
<p>Now these links will be hidden. You can use the standard drop down web part menu to access them if you need to without re-enabling them:</p>
<p><a href="http://nickgrattan.files.wordpress.com/2011/02/cwp03.png"><img class="aligncenter size-full wp-image-521" title="CWP03" src="http://nickgrattan.files.wordpress.com/2011/02/cwp03.png?w=700" alt=""   /></a><a href="http://nickgrattan.files.wordpress.com/2011/02/cwp021.png"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/517/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/517/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/517/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=517&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/02/15/chart-web-part-hiding-data-appearance-and-advanced-properties/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>

		<media:content url="http://nickgrattan.files.wordpress.com/2011/02/cwp01.png" medium="image">
			<media:title type="html">CWP01</media:title>
		</media:content>

		<media:content url="http://nickgrattan.files.wordpress.com/2011/02/cwp02.png" medium="image">
			<media:title type="html">CWP02</media:title>
		</media:content>

		<media:content url="http://nickgrattan.files.wordpress.com/2011/02/cwp03.png" medium="image">
			<media:title type="html">CWP03</media:title>
		</media:content>
	</item>
		<item>
		<title>Restore Error: Path cannot be used at this time</title>
		<link>http://nickgrattan.wordpress.com/2011/01/07/restore-error-path-cannot-be-used-at-this-time/</link>
		<comments>http://nickgrattan.wordpress.com/2011/01/07/restore-error-path-cannot-be-used-at-this-time/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 13:17:51 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint Administration]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=510</guid>
		<description><![CDATA[When performing a Microsoft SharePoint 2007 restore you may receive this error: Object NG_Documents (previous name: Documents) failed in event OnRestore. For more information, see the error log located in the backup directory. COMException: The path specified cannot be used at this time. (Exception from HRESULT: 0&#215;80070094) To fix this problem you may need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=510&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>When performing a Microsoft SharePoint 2007 restore you may receive this error:</p>
<p>Object NG_Documents (previous name: Documents) failed in event OnRestore. For more information, see the error log located in the backup directory.</p>
<p>COMException: The path specified cannot be used at this time. (Exception from HRESULT: 0&#215;80070094)</p>
<p>To fix this problem you may need to apply this hot fix: <a href="http://support.microsoft.com/kb/946517">http://support.microsoft.com/kb/946517</a></p>
<p>Note that this is a hotfix that is applied to Microsoft Windows Server and not to SharePoint itself.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/510/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/510/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=510&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/01/07/restore-error-path-cannot-be-used-at-this-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint: Opening CSV files with Microsoft Excel</title>
		<link>http://nickgrattan.wordpress.com/2011/01/05/sharepoint-opening-csv-files-with-microsoft-excel/</link>
		<comments>http://nickgrattan.wordpress.com/2011/01/05/sharepoint-opening-csv-files-with-microsoft-excel/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 09:11:37 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint Administration]]></category>
		<category><![CDATA[CSV SharePoint MIME]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=505</guid>
		<description><![CDATA[By default, if open a .CSV file in a SharePoint the browser will prompt you to save the file. Ideally, you probably want the file to be opened directly in Microsoft Excel. There are two configuration options that need to be made. The instructions here are for SharePoint 2010 but are similar for SharePoint 2007. Add [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=505&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>By default, if open a .CSV file in a SharePoint the browser will prompt you to save the file. Ideally, you probably want the file to be opened directly in Microsoft Excel. There are two configuration options that need to be made. The instructions here are for SharePoint 2010 but are similar for SharePoint 2007.</p>
<ul>
<li><strong>Add an entry to DOCICON.XML</strong><strong>﻿</strong></li>
</ul>
<p>This file is located by default at: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML. Open the file DOCICON.XML for editing and add the following line in the ByExtension element:</p>
<p>        &lt;Mapping Key=&#8221;csv&#8221; Value=&#8221;icxltx.png&#8221; OpenControl=&#8221;"/&gt;</p>
<p>This ensures that the Excel icon is displayed alongside CSV files.</p>
<p>Note: if you want to be prompted to open read-only or for edit remove &#8216;OpenControl=&#8221;" &#8216; in the Mapping Key.</p>
<ul>
<li><strong>Change the MIME type associated with the CSV Extension in Internet Information Server (IIS)</strong></li>
</ul>
<p>To do this:</p>
<ol>
<li>Run the &#8220;Internet Information Services (IIS) Manager&#8221; application from the Start/Administrative tools menu.</li>
<li>Select the server in the left-hand pane.</li>
<li>Select &#8220;MIME Types&#8221; in the list of options in the middle pane.</li>
<li>Then locate the .CSV entry (it should already exist) and change the MIME type to: application/vnd.ms-excel, and click <strong>OK.</strong></li>
</ol>
<p><a href="http://nickgrattan.files.wordpress.com/2011/01/mime.png"><img class="aligncenter size-full wp-image-506" title="mime" src="http://nickgrattan.files.wordpress.com/2011/01/mime.png?w=700" alt=""   /></a></p>
<p>Once these configuration options are complete perform an IIS Reset.</p>
<p>CSV files should now be opened using Excel by default. You will be prompted that a change in file extension has occurred when using Office 2007. You will need to click Yes in this warning message.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/505/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/505/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/505/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=505&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/01/05/sharepoint-opening-csv-files-with-microsoft-excel/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>

		<media:content url="http://nickgrattan.files.wordpress.com/2011/01/mime.png" medium="image">
			<media:title type="html">mime</media:title>
		</media:content>
	</item>
		<item>
		<title>When a SPFieldUserValueCollection won&#8217;t clear</title>
		<link>http://nickgrattan.wordpress.com/2011/01/02/when-a-spfielduservaluecollection-wont-clear/</link>
		<comments>http://nickgrattan.wordpress.com/2011/01/02/when-a-spfielduservaluecollection-wont-clear/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 09:58:48 +0000</pubDate>
		<dc:creator>Nick Grattan</dc:creator>
				<category><![CDATA[SharePoint Object Model]]></category>
		<category><![CDATA[SharePoint;Object Model]]></category>

		<guid isPermaLink="false">http://nickgrattan.wordpress.com/?p=499</guid>
		<description><![CDATA[Some time ago I wrote about problems with updating items through an item collection (see here). Well, here&#8217;s another similar problem that has bitten me, and it&#8217;s to do with updating a SPFieldUserValueCollection object. In this code I want to clear out the list of users configured for a multi-select user column in a list: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=499&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some time ago I wrote about problems with updating items through an item collection (see <a href="http://nickgrattan.wordpress.com/2008/11/12/when-an-splistitem-wont-update-or-change-2/">here</a>). Well, here&#8217;s another similar problem that has bitten me, and it&#8217;s to do with updating a SPFieldUserValueCollection object.</p>
<p>In this code I want to clear out the list of users configured for a multi-select user column in a list:</p>
<p><pre class="brush: csharp;">
                SPListItem li = ...; // get a list item
                SPFieldUserValueCollection uvc = (SPFieldUserValueCollection)li[&quot;View Form Groups&quot;];
                if (uvc != null)
                {
                    uvc.Clear();
                }
                li.Update();
</pre></p>
<p>The code gets the SPFieldUserValueCollection object for the field, and if it&#8217;s not null, empties the collection and updates the item.</p>
<p>However, the list of users is not cleared in the list item. It seems that a copy of the collection is made, and it&#8217;s the copy that is cleared. Here&#8217;s the code to correct this problem:</p>
<p><pre class="brush: csharp;">
                SPListItem li = ...;
                SPFieldUserValueCollection uvc = (SPFieldUserValueCollection)li[&quot;View Form Groups&quot;];
                if (uvc != null)
                {
                    uvc.Clear();
                    li[&quot;View Form Groups&quot;] = uvc;
                }
                li.Update();
</pre></p>
<p>In this case, the modified SPFieldUserValueCollection is copied back into the field and the list item updated.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/nickgrattan.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/nickgrattan.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/nickgrattan.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/nickgrattan.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/nickgrattan.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/nickgrattan.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/nickgrattan.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/nickgrattan.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/nickgrattan.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/nickgrattan.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/nickgrattan.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/nickgrattan.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/nickgrattan.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/nickgrattan.wordpress.com/499/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=nickgrattan.wordpress.com&amp;blog=1237546&amp;post=499&amp;subd=nickgrattan&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://nickgrattan.wordpress.com/2011/01/02/when-a-spfielduservaluecollection-wont-clear/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fa61d48d7da846674a11b9f6a3cee982?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">nickgrattan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
