ASP.NET 3.5 introduces a new control called the ListView that allows developers to have 100% control over the HTML markup that is generated while still providing paging, inserting, updating, and deleting support. To me the ListView control is a nice blend between the GridView and Repeater controls with new features added.
In this video I walk through the fundamentals of using the ListView control and show how you can use the new CSS tools in VS.NET 2008 to create a scrollable ListView control with a frozen header.
Using the ASP.NET ListView Control (and freezing the header)



















Hi Dan, I am using vs201.
I tried to use a listview ( used the same code you provide from the vid) but for some reason the header does not freeze like yours.
What am i doing wrong. Please help.
css
.divReps
{
width: 950px;
height: 300px;
border: 1px solid #000000;
overflow: auto;
}
.divReps th
{
position:relative;
}
source:
First Name
Last Name
PKS ID