<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Export SPGridView to Excel spreadsheet in Sharepoint 2007</title>
	<atom:link href="http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/</link>
	<description>It&#039;s all about SharePoint</description>
	<lastBuildDate>Wed, 14 Jul 2010 09:03:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Briana</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-488</link>
		<dc:creator>Briana</dc:creator>
		<pubDate>Sun, 30 May 2010 08:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-488</guid>
		<description>@G Vijai Kumar

I am using your code in an aspx page with inline code. I used your code as it without changing anything and calling it on button click. It create a blank excel sheet thne I debug the code and noticed that it is not adding heading row as well not going in for-each loop. In my aspx page spgridview control is already added. I dont think it should be the problem. Secondly I also noticed that after executing the excelsheet If I try to re-click on buton, nothing happen.

Please advise</description>
		<content:encoded><![CDATA[<p>@G Vijai Kumar</p>
<p>I am using your code in an aspx page with inline code. I used your code as it without changing anything and calling it on button click. It create a blank excel sheet thne I debug the code and noticed that it is not adding heading row as well not going in for-each loop. In my aspx page spgridview control is already added. I dont think it should be the problem. Secondly I also noticed that after executing the excelsheet If I try to re-click on buton, nothing happen.</p>
<p>Please advise</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shankar Raman</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-481</link>
		<dc:creator>Shankar Raman</dc:creator>
		<pubDate>Tue, 25 May 2010 15:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-481</guid>
		<description>I am trying to export an spgridview that has a SPMenufield, however once exported the SPMenufield is not properly exported. I just get some hyperlinks which don&#039;t make any sense. How do you &quot;PrepareControlForExport&quot; for SPMenuField?</description>
		<content:encoded><![CDATA[<p>I am trying to export an spgridview that has a SPMenufield, however once exported the SPMenufield is not properly exported. I just get some hyperlinks which don&#8217;t make any sense. How do you &#8220;PrepareControlForExport&#8221; for SPMenuField?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G Vijai Kumar</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-472</link>
		<dc:creator>G Vijai Kumar</dc:creator>
		<pubDate>Tue, 25 May 2010 06:17:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-472</guid>
		<description>@ Rittika: Can you please post the error message, have you tried to debug the code, please provide me more information, thanks</description>
		<content:encoded><![CDATA[<p>@ Rittika: Can you please post the error message, have you tried to debug the code, please provide me more information, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G Vijai Kumar</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-469</link>
		<dc:creator>G Vijai Kumar</dc:creator>
		<pubDate>Tue, 25 May 2010 06:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-469</guid>
		<description>@ Briana: Have you modified any code? if possible post your code, thanks</description>
		<content:encoded><![CDATA[<p>@ Briana: Have you modified any code? if possible post your code, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G Vijai Kumar</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-468</link>
		<dc:creator>G Vijai Kumar</dc:creator>
		<pubDate>Tue, 25 May 2010 06:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-468</guid>
		<description>@ Briana: No, it won&#039;t export with grouping even if you enable on SPGridView</description>
		<content:encoded><![CDATA[<p>@ Briana: No, it won&#8217;t export with grouping even if you enable on SPGridView</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Briana</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-464</link>
		<dc:creator>Briana</dc:creator>
		<pubDate>Mon, 24 May 2010 18:29:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-464</guid>
		<description>I tried without grouping, excel files is creating but  nothing appearing in excel. let me know am I missing anything?</description>
		<content:encoded><![CDATA[<p>I tried without grouping, excel files is creating but  nothing appearing in excel. let me know am I missing anything?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Briana</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-463</link>
		<dc:creator>Briana</dc:creator>
		<pubDate>Mon, 24 May 2010 17:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-463</guid>
		<description>If I enable the grouping on SPGridview, will it also export with grouping?</description>
		<content:encoded><![CDATA[<p>If I enable the grouping on SPGridview, will it also export with grouping?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PeteR</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-427</link>
		<dc:creator>PeteR</dc:creator>
		<pubDate>Tue, 11 May 2010 12:17:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-427</guid>
		<description>To Kien Tran: Nice one!
I too am fairly new to SP2007 Development but had a more tricky issue. Rather than have a funky button to support the Export, I preferred to rather add a Verb to the Webpart such that the webpart dropdown menu renders the &#039;Export File&#039; option; looks tidier.
1. Override the WebPartVerCollection
2. Create my new Verb : 
WebPartVerb verb = new WebPartVerb(&quot;AlertsReportExport&quot;, OnExportClick, &quot;_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;&quot;);
3. Add it to the Verbs collection and then return it.
Cheers</description>
		<content:encoded><![CDATA[<p>To Kien Tran: Nice one!<br />
I too am fairly new to SP2007 Development but had a more tricky issue. Rather than have a funky button to support the Export, I preferred to rather add a Verb to the Webpart such that the webpart dropdown menu renders the &#8216;Export File&#8217; option; looks tidier.<br />
1. Override the WebPartVerCollection<br />
2. Create my new Verb :<br />
WebPartVerb verb = new WebPartVerb(&#8220;AlertsReportExport&#8221;, OnExportClick, &#8220;_spFormOnSubmitCalled = false;_spSuppressFormOnSubmitWrapper=true;&#8221;);<br />
3. Add it to the Verbs collection and then return it.<br />
Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rittika</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-426</link>
		<dc:creator>Rittika</dc:creator>
		<pubDate>Mon, 10 May 2010 20:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-426</guid>
		<description>Vijai, i tried to implement the above for a SharePoint list on (http://—-/allitems.aspx), but it gives me error - Object reference not set to an instance of an object. 

Please advise.

Thanks.</description>
		<content:encoded><![CDATA[<p>Vijai, i tried to implement the above for a SharePoint list on (<a href="http://—-/allitems.aspx" rel="nofollow">http://—-/allitems.aspx</a>), but it gives me error &#8211; Object reference not set to an instance of an object. </p>
<p>Please advise.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G Vijai Kumar</title>
		<link>http://www.fivenumber.com/export-spgridview-to-excel-spreadsheet-in-sharepoint-2007/comment-page-1/#comment-406</link>
		<dc:creator>G Vijai Kumar</dc:creator>
		<pubDate>Tue, 20 Apr 2010 05:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.fivenumber.com/?p=528#comment-406</guid>
		<description>@ Harsh: You can create a custom webpart which has only button, on button click you can execute the code above posted code.</description>
		<content:encoded><![CDATA[<p>@ Harsh: You can create a custom webpart which has only button, on button click you can execute the code above posted code.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
