【发布时间】:2023-03-21 15:19:01
【问题描述】:
最近我试图在一个 GridView 渲染中使用“https://datatables.net”的功能。这是不可能的,因为渲染总是给出一个没有正确格式的表格(没有thead)。有没有办法将渲染转换为正确的格式?
正确的格式:
<table id="table_id" class="display">
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1 Data 1</td>
<td>Row 1 Data 2</td>
</tr>
<tr>
<td>Row 2 Data 1</td>
<td>Row 2 Data 2</td>
</tr>
</tbody>
</table>
【问题讨论】:
标签: c# jquery asp.net webforms