Results 1 to 5 of 5

Thread: Listview header template?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2004
    Posts
    541

    Listview header template?

    Hi all,

    From what I can tell the listview doesn't have a header template. I'd like to be able to list and line up the column names with the data on my list view, but there doesn't seem to be a straightforward way to do this. If I put it in a table in the item template, it lines up like I want it, but it of course repeats which is what I don't want. Can anyone offer some suggestions on how I can easily go about doing this?

    Thanks,

    Strick

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Listview header template?

    Use the Layout template to define the headers.

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Listview header template?

    Hey,

    Here is an example of what Bruce has suggested:

    http://www.codeproject.com/KB/webfor...eListView.aspx

    Hope that helps!

    Gary

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2004
    Posts
    541

    Re: Listview header template?

    Thanks guys,

    I'll take a look at this.

    Strick

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Listview header template?

    Hey,

    Let us know how you get on, and if you are still struggling.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width