Using the ASP.NET ListView Control and freezing the header, video by Dan Wahlin

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)

This entry was posted in Developer Visual Studio / ASP.NET, Web Development and tagged , , , , , , , , , . Bookmark the permalink.

One Response to Using the ASP.NET ListView Control and freezing the header, video by Dan Wahlin

  1. sami says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>