ASP.NET TableSection ÊôÐÔ

¶¨ÒåºÍÓ÷¨

TableSection ÊôÐÔÓÃÓÚÉèÖûò·µ»Ø Table ¿Ø¼þÖÐµÄ TableRow ¶ÔÏóµÄλÖá£

ʹÓà TableSection ÊôÐÔÀ´»ñÈ¡»òÉèÖÃÔÚ Table ¿Ø¼þÖзÅÖà TableRow ¶ÔÏóµÄλÖá£

Óï·¨

<asp:TableRow TableSection="section" runat="server">
Some Content
</asp:TableRow>
ÊôÐÔ ÃèÊö
section

¹æ¶¨¸ÃÐÐËùÊôµÄ±í¸ñ²¿·Ö¡£

¿ÉÄܵÄÖµ£º

  • TableHeader - ±íÍ·ÐÐ
  • TableBody - ĬÈÏ¡£±íµÄÕýÎÄ
  • TableFooter - ½Å×¢ÐÐ

ʵÀý

ÏÂÃæµÄÀý×ÓÉèÖÃÁË TableRow ¿Ø¼þµÄ TableSection ÊôÐÔ£º

<form runat="server">
<asp:table id="Table1" runat="server" GridLines="Both">

<asp:TableRow TableSection="TableHeader">
<asp:TableCell>Header</asp:TableCell>
</asp:TableRow>

</asp:table>
</form>

ʵÀý

¹æ¶¨ TableRow ¿Ø¼þµÄ TableSection