<?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: Displaying Data in a datagrid</title><link>http://forums.asp.net/thread/2361366.aspx</link><pubDate>Fri, 16 May 2008 04:45:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2361366</guid><dc:creator>blurearc</dc:creator><author>blurearc</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2361366.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2361366</wfw:commentRss><description>&lt;p&gt;ahh! this reminds me asp.net 1.1,&lt;/p&gt;
&lt;p&gt;yopu must have streached you grid to some height.&lt;/p&gt;
&lt;p&gt;dot do that. and remove hright&amp;#39;s valuew of Datagrid from the propertywindow... it will work fine.. :)&lt;/p&gt;</description></item><item><title>Re: Displaying Data in a datagrid</title><link>http://forums.asp.net/thread/2361357.aspx</link><pubDate>Fri, 16 May 2008 04:37:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2361357</guid><dc:creator>ams16</dc:creator><author>ams16</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2361357.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2361357</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;Yea,you might have set some width or colspan properties in the design page.please try removing that.</description></item><item><title>Re: Displaying Data in a datagrid</title><link>http://forums.asp.net/thread/2359633.aspx</link><pubDate>Thu, 15 May 2008 11:22:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2359633</guid><dc:creator>rajeshthangarasu</dc:creator><author>rajeshthangarasu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2359633.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2359633</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Remove any height and width properties from the source code&lt;/p&gt;&lt;p&gt;&amp;lt;asp:GridView ID=&amp;quot;GridView1&amp;quot; runat=&amp;quot;server&amp;quot; ShowFooter=&amp;quot;True&amp;quot; &lt;u&gt;&lt;b&gt;Height=&amp;quot;1px&amp;quot; Width=&amp;quot;310px&amp;quot; &lt;/b&gt;&lt;/u&gt;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:GridView&amp;gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Displaying Data in a datagrid</title><link>http://forums.asp.net/thread/2359554.aspx</link><pubDate>Thu, 15 May 2008 10:46:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2359554</guid><dc:creator>Raggers</dc:creator><author>Raggers</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2359554.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2359554</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It depends on contents in your datagrid cells .Not on size of column heading&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Displaying Data in a datagrid</title><link>http://forums.asp.net/thread/2359509.aspx</link><pubDate>Thu, 15 May 2008 10:28:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2359509</guid><dc:creator>BaySoft_Dan</dc:creator><author>BaySoft_Dan</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2359509.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2359509</wfw:commentRss><description>&lt;p&gt;Without looking at your code, I can only guess, but please check that you don&amp;#39;t have the height of the datagrid set to 100%. At the end of the day, the grid is rendered in HTML as a table. You could look at the SOURCE rather than in the designer, and try searching from &amp;quot;100%&amp;quot; in the datagrid code. Hope this helps.&lt;/p&gt;</description></item><item><title>Displaying Data in a datagrid</title><link>http://forums.asp.net/thread/2359500.aspx</link><pubDate>Thu, 15 May 2008 10:24:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2359500</guid><dc:creator>nellocon</dc:creator><author>nellocon</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2359500.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=2359500</wfw:commentRss><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I am using a datagrid to display records from my database. I have one datagrid which displays all the records and this works fine. I also have a datagrid which only displays records where location is equal to &amp;quot;belgium&amp;quot;, this also works fine. My problem however is that when displaying the belgium records there may only be one or 2 records yet the grid still takes up most of the page where the header and footer&amp;nbsp;is enlarged ridiculously. &lt;/p&gt;
&lt;p&gt;When there are many records that fill the grid it looks fine but when there is only one or 2 it resizes the column as such.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Could anyone please tell me why this happens??&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks alot for your help!&lt;/p&gt;</description></item></channel></rss>