ASP.NET TableSection 屬性
定義和用法
TableSection 屬性用于設(shè)置或返回 Table 控件中的 TableRow 對象的位置。
使用 TableSection 屬性來獲取或設(shè)置在 Table 控件中放置 TableRow 對象的位置。
語法
<asp:TableRow TableSection="section"
runat="server">
Some Content
</asp:TableRow>
屬性 | 描述 |
---|---|
section |
規(guī)定該行所屬的表格部分。 可能的值:
|
實(shí)例
下面的例子設(shè)置了 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>
實(shí)例
- 規(guī)定 TableRow 控件的 TableSection