Blog Stats
  • Posts - 8
  • Articles - 0
  • Comments - 3
  • Trackbacks - 0

 

Fixed Header for Data Repeater Control

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.

Feedback

No comments posted yet.


Post a comment





 

 

 

Copyright © faizanahmad