I have ASP:GridView. I want to add Data-Type="Product" in header and cell.
<asp:GridView ID="GridView1" HeaderStyle-BackColor="#3AC0F2" HeaderStyle-ForeColor="White"
runat="server" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" ItemStyle-Width="30" />
<asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="150" />
<asp:BoundField DataField="Country" HeaderText="Country" ItemStyle-Width="150" />
</Columns>
</asp:GridView>
I want to add Data-Type same as we can add in 'th'.
Ex. <th align="left" scope="col" data-type="product">Name</th>
Can anybody suggest me?
Aucun commentaire:
Enregistrer un commentaire