faizan ahmad

Usually the things which were not a straight Google

  Home  |   Contact  |   Syndication    |   Login
  15 Posts | 0 Stories | 55 Comments | 0 Trackbacks

News

Archives

Post Categories

.NET

ASP.NET

I had a Repeater control within a div. Now when there were more records than visible within height of DIV a scroll bar appear. But, when user scrolls down, the headings ( within HeaderTemplate) would go up and not be visible.

After googling a little, I was able to find the solution on code project:

http://www.codeproject.com/KB/webforms/DataGridFixedHeader.aspx


In my case though I had a 'tr' element within 'HeaderTemplate' element ,so I applied it to like:

<tr class="ms-formlabel DataGridFixedHeader " >

Limitation:

It worked fine in IE 7, but in IE 6 the background image, if you have any in css,  would disappear on scrolling.
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Thursday, January 08, 2009 3:48 PM