ASP.NET TableSection property

Definition and usage

The TableSection property is used to set or return the position of the TableRow object in the Table control.

Use the TableSection property to get or set the position of the TableRow object in the Table control.

Syntax

<asp:TableRow TableSection="section" runat="server">
Some Content
</asp:TableRow>
Property Description
section

Specify the table section to which the row belongs.

Possible values:

  • TableHeader - header row
  • TableBody - default. The table body
  • TableFooter - footnote row

Example

The following example sets the TableSection property of the 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>

Example

Specify the TableSection for TableRow control