<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Presentation Controls</title><link>http://forums.asp.net/24.aspx</link><description>ASP.NET data-bound controls such as the DataGrid, DataList, GridView, FormView, DetailsView, and Repeater Controls.  &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=23&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Gridview Footer not showing</title><link>http://forums.asp.net/thread/1931851.aspx</link><pubDate>Fri, 28 Sep 2007 13:36:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1931851</guid><dc:creator>RedSunBeer</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1931851.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1931851</wfw:commentRss><description>&lt;p&gt;Gridview doesnt allow the footer to display if there are no records in its datasource.&amp;nbsp; So first add a dummy/empty but valid row/record/value to the gridview datasource before assigning and binding it to the gridview.&amp;nbsp; Then set the first row of the gridview to invisible.&amp;nbsp; An example is given below,&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008080" size="2"&gt;/*&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;font color="#008080" size="2"&gt;DataRow&lt;/font&gt;&lt;font size="2"&gt; dr = dataView.Table.NewRow();&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;dataView.Table.Rows.Add(dr);&lt;/p&gt;
&lt;p&gt;grd.DataSource = dataView;&lt;/p&gt;
&lt;p&gt;grd.DataBind();&lt;/p&gt;
&lt;p&gt;grd.Rows[0].Visible = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#008080"&gt;*/&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;font color="#008080"&gt;Good luck - redsunbeer&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Gridview Footer not showing</title><link>http://forums.asp.net/thread/1288827.aspx</link><pubDate>Wed, 17 May 2006 21:03:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1288827</guid><dc:creator>AmNoGeek</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1288827.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1288827</wfw:commentRss><description>It sure is bad design, but the EmptyDataText does not solve the problem either. It would simply display whatever text you define but will still not show the footer. &lt;br /&gt;You will have to insert an empty object in the datasource (in case your datasource count is 0) and then on RowDataBound event hide this empty row. It is not a very good solution but a decent hack that works.&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Gridview Footer not showing</title><link>http://forums.asp.net/thread/1288721.aspx</link><pubDate>Wed, 17 May 2006 19:40:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1288721</guid><dc:creator>jcasp</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1288721.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1288721</wfw:commentRss><description>It is by design (bad design perhaps?).&amp;nbsp; GridView no longer displays the header/footer when there's no data to display.&amp;nbsp; There's EmptyDataText and EmptyDataRowStyle which can be used to display something pertinent when no data is found.&amp;nbsp; I rather liked the DataGrid's behavior when it comes to dealing with empty data.&lt;br /&gt;</description></item><item><title>Gridview Footer not showing</title><link>http://forums.asp.net/thread/1288609.aspx</link><pubDate>Wed, 17 May 2006 18:14:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1288609</guid><dc:creator>mru22</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1288609.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1288609</wfw:commentRss><description>&lt;p&gt;I am not sure if this is by design but when I bind a datasource that has no records or objects in a collection then the gridview's footer does not display.&amp;nbsp; I know in the datagrid I could still have a footer display if there were not items in the datagrid.&lt;/p&gt;
&lt;p&gt;Is there a work around or some way I can get the footer to display even if I have no items in the Gridview.&amp;nbsp; I have showfooter set to true.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;</description></item></channel></rss>