ASP.NET RowSpan ความหมายเลข

คำนิยามและวิธีใช้

RowSpan ความหมายเลขใช้งานสำหรับตั้งค่าหรือกลับค่าจำนวนบรรทัดที่ TableCell ข้างต้นครอบคลุมของ Table ควบคุม

รูปแบบ

<asp:TableCell RowSpan="num" runat="server">
Some content
</asp:TableCell>
รายละเอียด บรรณาธิการ
num กำหนดจำนวนบรรทัดที่ TableCell ข้างต้นครอบคลุม

ตัวอย่าง

ตัวอย่างด้านล่างนี้ตั้งค่า RowSpan ให้เป็น "2":

<form runat="server">
<asp:Table id="tab1" runat="server">
<asp:TableRow>
<asp:TableCell RowSpan="2">Some Content</asp:TableCell>
<asp:TableCell>Some Content</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell>Some Content</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

ตัวอย่าง

ตั้งค่า RowSpan สำหรับ TableCell ควบคุม