ASP.NET RowSpan 속성

정의 및 사용법

RowSpan 속성은 Table 컨트롤에서 TableCell이 가로로 차지하는 행 수를 설정하거나 반환합니다.

문법

<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>

예제

TableCell 컨트롤에 RowSpan 속성 설정