Many beginners are wondering what the HTML code generated by the GridView is. The following is an example comparison. For more information, see
The Code is as follows: <asp: GridView ID = "GridView1" runat = "server" AutoGenerateColumns = "false" CssClass = "tablecss"> <Columns> <asp: templateField HeaderText = "no." HeaderStyle-CssClass = "aaa" ItemStyle-CssClass = "bbb"> <ItemTemplate> <% # Eval ("id ") %> </ItemTemplate> </asp: TemplateField> <asp: templateField HeaderText = "name" HeaderStyle-CssClass = "aaa" ItemStyle-CssClass = "bbb"> <ItemTemplate> <% # Eval ("name ") %> </ItemTemplate> </asp: TemplateField> </Columns> </asp: gridView> when there are too many statistics, there are too many statistics when there are too many statistics. please refer to the following link for more information: when there are too many threads, too many threads, and so on. <div> <table class = "tablecss" cellspacing = "0 "rules =" all "border =" 1 "id =" Table1 "style =" border-collapse: collapse; "> <tr> <th class =" aaa "scope =" col "> NO. </th> <th class =" aaa "scope =" col "> name </th> </tr> <td class = "bbb"> 1 </td> <td class = "bbb"> Zhang San </td> </tr> <tr> <td class = "bbb"> 2 </td> <td class = "bbb"> Li Si </td> </tr> </table> </div>