Latest web development tutorials

ASP.NET TableCell RowSpan property

TableCell control TableCell control

Definition and Usage

RowSpan property sets or returns the number of rows in Table TableCell control spanned.

grammar

<asp:TableCell RowSpan="num" runat="server">
Some content
</asp:TableCell>
属性 描述
num 规定 TableCell 横跨的行数。


Examples

The following examples are put RowSpan attribute is set to "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>

The demonstration >>

TableCell control TableCell control