คุณสมบัติ TableSection ของ ASP.NET
การกำหนดและการใช้งาน
คุณสมบัติ TableSection ใช้เพื่อตั้งค่าหรือกลับค่าตำแหน่งของ TableRow ในควบคุม Table
ใช้คุณสมบัติ TableSection ที่เพื่อจะเข้าถึงหรือตั้งค่าตำแหน่งของ TableRow ในควบคุม Table
ระบบทางภาษา
<asp:TableRow TableSection="section" runat="server"> Some Content </asp:TableRow>
คุณสมบัติ | การอธิบาย |
---|---|
section |
กำหนดส่วนที่บรรทัดนี้เนื่องกับส่วนของตาราง ค่าที่เป็นไปได้
|
ตัวอย่าง
ตัวอย่างด้านล่างจัดตั้งค่าตัวแปร 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 ควบคุม