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="Horizonta l"
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?
<div id="chks">
<asp:datalist id="datalist1"
runat="server"
RepeatColumns="2"
RepeatDirection="Horizonta
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
ASKER
Yes, I was able to write it back thru the databoud peice
For better assistance, please include the aspx code of your datalist (and not the asp.cs code)