I am using .NET Studio 2003 and Framework 1.1
After Binding a DataSource to any DataGrid when I see the generated Source in browser.
it shows like this
<table>
<tr>
<td>Abc</td>
<td>Def</td>
<td>Ghi</td>
</tr>
<tr>
<td>Abc</td>
<td>Def</td>
<td>Ghi</td>
</tr>
</table>
but instead of getting this I want to generate code like this (below)
<table>
<thead>
<tr>
<td>Abc</td>
<td>Def</td>
<td>Ghi</td>
</tr>
</thead>
<tbody>
<tr>
<td>Abc</td>
<td>Def</td>
<td>Ghi</td>
</tr>
</tbody>
</table>
For getting pure html structure repeater is the best choice. you can use repeater as below for your code.
Hope this will hepls you…happy coding…