简体   繁体   中英

vb.net datagrid header using th tag

is it possible to use tag when bind datagrid in vb.net ?

current result is :

<thead>
<tr>
    <td>Header</td>
</tr>
</thead>

What I want is :

<thead>
<tr>
    <th>Header</th>
</tr>
</thead>

The data grid tag needs the property "UseAccessibleHeader" and a value of True.

<asp:DataGrid ID="BigDataGrid" UseAccessibleHeader="True" runat="server">
    <Columns>
    ...
    </Columns>
</asp:DataGrid>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM