<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx</link><description>This question came up at the Public Sector Developer Conference in Anchorage, AK. I'm trying to answer all customer questions like this via my blog so everyone has the benefit of the answer. There are a number of ways to do it, but my favorite (because</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#4985510</link><pubDate>Tue, 18 Sep 2007 23:06:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4985510</guid><dc:creator>Pat</dc:creator><description>&lt;p&gt;You can also reproduce this behavior with a simple stylesheet element... &amp;nbsp;Much easier to work with and easy to implement!&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#4987257</link><pubDate>Wed, 19 Sep 2007 01:36:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4987257</guid><dc:creator>David</dc:creator><description>&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/dwahlin/archive/2007/07/31/freeze-asp-net-gridview-headers-by-creating-client-side-extenders.aspx"&gt;http://weblogs.asp.net/dwahlin/archive/2007/07/31/freeze-asp-net-gridview-headers-by-creating-client-side-extenders.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#4996152</link><pubDate>Wed, 19 Sep 2007 14:22:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4996152</guid><dc:creator>Dave</dc:creator><description>&lt;p&gt;I came across this yesterday, only seems to work in IE.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://mattberseth.com/blog/2007/09/freezing_gridview_column_heade_1.html"&gt;http://mattberseth.com/blog/2007/09/freezing_gridview_column_heade_1.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#4996766</link><pubDate>Wed, 19 Sep 2007 15:41:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4996766</guid><dc:creator>Michael T</dc:creator><description>&lt;p&gt;As pat pointed out implementing the style portion alone works.&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#6775451</link><pubDate>Sat, 15 Dec 2007 09:56:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6775451</guid><dc:creator>pcs</dc:creator><description>&lt;p&gt;how we slide from header like excel in 2.0 asp&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#7433184</link><pubDate>Mon, 04 Feb 2008 13:46:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7433184</guid><dc:creator>SA</dc:creator><description>&lt;p&gt;Nice.&lt;/p&gt;
&lt;p&gt;SA&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.dotnetcurry.com"&gt;http://www.dotnetcurry.com&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#7639821</link><pubDate>Tue, 12 Feb 2008 14:43:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7639821</guid><dc:creator>Krirk</dc:creator><description>&lt;p&gt;ฺีBut every solution I found on internet that have a problem. If in your record have a dropdown list.It is a little bug for display.&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#8338321</link><pubDate>Wed, 26 Mar 2008 22:31:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8338321</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;Krirk, I believe a z-index on the header would fix the problem of a dropdownlist showing over it. &amp;nbsp;Please let me know if this is the problem you are talking about.&lt;/p&gt;
&lt;p&gt;-Aaron B&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#8624036</link><pubDate>Fri, 20 Jun 2008 05:47:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8624036</guid><dc:creator>Ben</dc:creator><description>&lt;p&gt;Unless you are using IE 7 the z-index does not change the way a dropdown displays. &amp;nbsp;Basically the &amp;quot;select&amp;quot; is windowed, and does not play by the z-index rules. &amp;nbsp;I'm using IE 6 right now and the z-index does not change the way the dropdown displays over the gridview header. &amp;nbsp;I've been reading the IE 7 fixed this issue, &amp;nbsp;but that is not an option at my work yet. &amp;nbsp;Anyway, &amp;nbsp;the z-index does not change the dropdown displaying over the header. &amp;nbsp;FYI, &amp;nbsp;from what I have read, &amp;nbsp;the dropdown is the only control that does not play well with the z-index&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#8956995</link><pubDate>Thu, 18 Sep 2008 12:18:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8956995</guid><dc:creator>csharp</dc:creator><description>&lt;p&gt;Your solution just works if it's in one scrollable div. If it's in more scrollable div, it will go wrong, and I'm so headache with this problem. Can you solve it again and absolutely?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#8967088</link><pubDate>Sat, 27 Sep 2008 01:06:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8967088</guid><dc:creator>rnc12345</dc:creator><description>&lt;p&gt;In IE6 I have the drop down that scrolls over the header of the gridview when scrolled. Is this issue been fixed? Kindly advise.&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#9295536</link><pubDate>Thu, 08 Jan 2009 11:56:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9295536</guid><dc:creator>Sai Prasad</dc:creator><description>&lt;p&gt;paste below code in Style sheet and add this (CssClass=&amp;quot;dropdownFix&amp;quot;) attribute to dropdown control. &lt;/p&gt;
&lt;p&gt;.dropdownFix&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;behavior:expression(this.style.visibility =(this.offsetParent.offsetParent.offsetParent.scrollTop-1) &amp;gt;(this.offsetParent.offsetTop - this.parentElement.parentElement.parentElement.firstChild.offsetHeight+1)? 'hidden' : 'visible');&lt;/p&gt;
&lt;p&gt;z-index: 10;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#9870867</link><pubDate>Sat, 15 Aug 2009 10:50:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9870867</guid><dc:creator>Azad</dc:creator><description>&lt;p&gt;Nice solution......Keep it up?&lt;/p&gt;
</description></item><item><title>re: How do I freeze an ASP.NET GridView header?</title><link>http://blogs.msdn.com/publicsector/archive/2007/09/18/how-do-i-freeze-an-asp-net-gridview-header.aspx#9901340</link><pubDate>Wed, 30 Sep 2009 18:13:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9901340</guid><dc:creator>Ramesh Burjanroppa</dc:creator><description>&lt;p&gt;within grid.RowCreated try this code&lt;/p&gt;
&lt;p&gt;if e.Row.RowType = DataControlRowType.Header&lt;/p&gt;
&lt;p&gt; &amp;nbsp;e.Row.Style.Add(&amp;quot;position&amp;quot;, &amp;quot;relative&amp;quot;)&lt;/p&gt;
&lt;p&gt;end if&lt;/p&gt;
</description></item></channel></rss>