Helo experts,

I used a grid view in my project. in that i used both horizontal and vertical scrolls..
its work fine.

But the problem is , when i scroll down the header is also moved down.

I want to have a fixed header provided the contents alone scroll.

please give me an advice in this regard.

Thanks in advance

Into the datagrid's headerstyle property add this

CssClass="ms-formlabel DataGridFixedHeader"
<!-- Then into the head tag create a style method like this -->
<style type="text/css">.DataGridFixedHeader { POSITION: relative; ; TOP: expression(document.getElementById("grid").scrollTop-2); BACKGROUND-COLOR: white }
</style>

grid is the ID of your datagrid.

regards.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.