Link to home
Start Free TrialLog in
Avatar of sl1nger
sl1nger

asked on

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"
    runat="server"
    RepeatColumns="2"
    RepeatDirection="Horizontal"
    RepeatLayout="table">

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?
Avatar of Salim Fayad
Salim Fayad
Flag of Lebanon image

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)
ASKER CERTIFIED SOLUTION
Avatar of sl1nger
sl1nger

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sl1nger
sl1nger

ASKER

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
Can you put your aspx code?
sl1inger, did you resolve this? I'm trying to do the same thing
Avatar of sl1nger

ASKER

Yes, I was able to write it back thru the databoud peice