Hi Arne,
Since the Repeater control is the only Web control that allows you to split
markup tags across the templates. you can write something like this to get a
THEAD and TBODY section:
<asp:Repeater id=Repeater1 runat="server">
<HeaderTemplate>
<table border=1 id="table1">
<THEAD >
<tr>
<th><b>Company</b></td>
<th><b>Symbol</b></td>
</tr>
</THEAD>
</TBODY>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td> <%# DataBinder.Eval(Container.DataItem, "Name") %> </td>
<td> <%# DataBinder.Eval(Container.DataItem, "Ticker") %> </td>
</tr>
</ItemTemplate>
<FooterTemplate>
</TBODY>
</table>
</FooterTemplate>
</asp:Repeater>
You can then style them like this:
<style>
#table1 thead td{
/*style definition for the cell within a thead*/
}
#table1 tbody td{
/*style definition for the cell within a tbody*/
}
</style>