自强学堂
自强学堂:学习、分享、让你更强!
.NET 参考手册HTMLCSSJAVASCRIPTJQUERYSQLPHPBOOTSTRAPANGULARXML
 

ASP.NET TableRow TableSection 属性

TableRow 控件 TableRow 控件

定义和用法

TableSection 属性用于设置或返回 Table 控件中的 TableRow 对象的位置。

使用 TableSection 属性来获取或设置在 Table 控件中放置 TableRow 对象的位置。

语法

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

可能的值:

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


实例

下面的实例设置了 TableRow 控件的 TableSection 属性:

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

演示实例 »

TableRow 控件 TableRow 控件