ASP.NET TableRow TableSection 屬性
定義和用法
TableSection 屬性用於設置或返回Table 控件中的TableRow 對象的位置。
使用TableSection 屬性來獲取或設置在Table 控件中放置TableRow 對象的位置。
語法
<asp:TableRow TableSection="section" runat="server">
Some Content
</asp:TableRow>
Some Content
</asp:TableRow>
属性 | 描述 |
---|---|
section | 规定该行所属的表格部分。 可能的值:
|
實例
下面的實例設置了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>
<asp:table id="Table1" runat="server" GridLines="Both">
<asp:TableRow TableSection="TableHeader">
<asp:TableCell>Header</asp:TableCell>
</asp:TableRow>
</asp:table>
</form>
演示實例»
TableRow控件