TableRow::TableSection Property
Assembly: System.Web (in System.Web.dll)
public: property TableRowSection TableSection { virtual TableRowSection get(); virtual void set(TableRowSection value); }
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.
Available since 2.0