แอตทริบิวต์ TableSection ของ ASP.NET

การใช้งานและการประกาศ

แอตทริบิวต์ TableSection ใช้สำหรับตั้งค่าหรือรับรู้ตำแหน่งของ TableRow ในควบคุม Table

ใช้แอตทริบิวต์ TableSection สำหรับรับรู้หรือตั้งค่าตำแหน่งของ TableRow ในควบคุม Table

ศัพท์

<asp:TableRow TableSection="section" runat="server">
Some Content
</asp:TableRow>
แอตทริบิวต์ คำอธิบาย
section

กำหนดส่วนที่บรรทัดนี้เน้น

ค่าที่เป็นไปได้

  • TableHeader - บรรทัดหัวตาราง
  • TableBody - โดยเริ่มต้น。ข้อความที่อยู่ในเนื้อหาตาราง
  • TableFooter - บรรทัดสระ

ตัวอย่าง

ตัวอย่างด้านล่างจัดตั้งค่า TableSection ของ TableRow ควบคุม

<form runat="server">
<asp:table id="Table1" runat="server" GridLines="Both">
<asp:TableRow TableSection="TableHeader">
<asp:TableCell>หัวข้อ</asp:TableCell>
</asp:TableRow>
</asp:table>
</form>

ตัวอย่าง

กำหนด TableSection ของ TableRow ควบคุม