<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>AlwaysShowHeaderFoot Wiki Rss Feed</title><link>http://code.msdn.microsoft.com/AlwaysShowHeaderFoot/Wiki/View.aspx?title=Home</link><description>AlwaysShowHeaderFoot Wiki Rss Description</description><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/AlwaysShowHeaderFoot/Wiki/View.aspx?title=Home&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;A more elegant solution to display GridView header and footer when the data source is empty.
&lt;br /&gt; &lt;br /&gt;I think the need to always show the header and footer of a GridView is pretty common.&lt;br /&gt;When I first ran into this problem, I went to Google and found lots of content about this.&lt;br /&gt;Some suggest tampering with the data source to add an extra row if it’s empty.  Others show overriding the CreateChildControls method.&lt;br /&gt; &lt;br /&gt;I was not satisfied with either of these solutions. I didn’t like that dirty feeling I had by tampering with the data source.  And I didn’t like overriding the CreateChildControls method because it simply didn’t work of me anyway.  This solution only gave the appearance of the header and footer existing.  I ran into issues because I was programmatically adding controls to the header.  Upon postback, if the data source was empty, the control hierarchy would not be the same as before thus causing an error.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;I blogged about this here&lt;br /&gt;&lt;a href="http://weblogs.asp.net/joewrobel/archive/2008/01/30/a-more-elegant-solution-to-display-gridview-header-and-footer-when-the-data-source-is-empty.aspx" class="externalLink"&gt;http://weblogs.asp.net/joewrobel/archive/2008/01/30/a-more-elegant-solution-to-display-gridview-header-and-footer-when-the-data-source-is-empty.aspx&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;</description><author>robolize</author><pubDate>Thu, 31 Jan 2008 03:52:21 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080131A</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/AlwaysShowHeaderFoot/Wiki/View.aspx?title=Home&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;A more elegant solution to display GridView header and footer when the data source is empty.
&lt;br /&gt; &lt;br /&gt;I think the need to always show the header and footer of a GridView is pretty common.&lt;br /&gt;When I first ran into this problem, I went to Google and found lots of content about this.&lt;br /&gt;Some suggest tampering with the data source to add an extra row if it’s empty.  Others show overriding the CreateChildControls method.&lt;br /&gt; &lt;br /&gt;I was not satisfied with either of these solutions. I didn’t like that dirty feeling I had by tampering with the data source.  And I didn’t like overriding the CreateChildControls method because it simply didn’t work of me anyway.  This solution only gave the appearance of the header and footer existing.  I ran into issues because I was programmatically adding controls to the header.  Upon postback, if the data source was empty, the control hierarchy would not be the same as before thus causing an error.&lt;br /&gt;
&lt;/div&gt;</description><author>robolize</author><pubDate>Thu, 31 Jan 2008 03:22:27 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080131A</guid></item></channel></rss>