TableRow::TableSection Property
Assembly: System.Web (in System.Web.dll)
public: virtual property TableRowSection TableSection { TableRowSection get (); void set (TableRowSection value); }
<asp:TableRow TableSection="TableRowSection" />
Property Value
Type: System.Web.UI.WebControls::TableRowSectionA TableRowSection value. The default is TableBody.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The TableRowSection is not valid. |
Use the TableSection property to get or set where the TableRow object is placed in a Table control. For the available table locations, see TableRowSection. The following table lists the possible values.
Table row section | Displayed as |
|---|---|
The header row. | |
The body of the table. | |
The footer row. |
When using the declarative syntax, the sections must be in the order of header, body, and then footer.
The TableRowSection enumeration enables you to build accessible Web sites using the Table control by adding the <thead>, <tbody>, and <tfoot> elements to the HTML that is rendered to the client. If all rows in a table are in the <tbody> element, the section information is not rendered. At least one row must be in a non-body element.
The value of this property is stored in view state.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.