header needs to repeat for each row in datalist

I have a datalist that works fine, but I want the header to repeat for each row.

<div id="chks">
   <asp:datalist  id="datalist1"

what I get...
header: col1, col2, col3, col4
             col1, col2, col3, col4

what I want....
header1: col1, col2, col3, col4
header2: col1, col2, col3, col4

Any suggestions?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Salim FayadCommented:
You have to include the header in your datalist.

For better assistance, please include the aspx code of your datalist (and not the asp.cs code)
sl1ngerAuthor Commented:
I had to add a ItemDataBound to get this to work, but when I added the header to the datalist.. this broke...

    Protected Sub datalist1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles datalist1.ItemDataBound
        Static count As Integer
        count += 1

        If e.Item.FindControl("lblResults") IsNot Nothing Then
            If count = 3 Then
                CType(e.Item.FindControl("lblResults"), Label).Visible = False
            End If
        End If

    End Sub

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sl1ngerAuthor Commented:
I'm not getting an error I think it's just looking at the first template, which is now headertemplate, instead of the itemtemplate.   The itemtemplate is the one holding the lblResults
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Salim FayadCommented:
Can you put your aspx code?
sl1inger, did you resolve this? I'm trying to do the same thing
sl1ngerAuthor Commented:
Yes, I was able to write it back thru the databoud peice
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.