Latest web development tutorials

ASP.NET TableRow TableSection property

TableRow control TableRow control

Definition and Usage

TableSection property sets or returns the position of a Table control TableRow object.

Use TableSection property to get or set the placement TableRow object in a Table control.

grammar

<asp:TableRow TableSection="section" runat="server">
Some Content
</asp:TableRow>
属性 描述
section 规定该行所属的表格部分。

可能的值:

  • TableHeader - 表头行
  • TableBody - 默认。表的正文
  • TableFooter - 脚注行


Examples

The following examples set TableSection property TableRow control:

<form runat="server">
<asp:table id="Table1" runat="server" GridLines="Both">

<asp:TableRow TableSection="TableHeader">
<asp:TableCell>Header</asp:TableCell>
</asp:TableRow>

</asp:table>
</form>

The demonstration >>

TableRow control TableRow control