TableRow.TableSection Property
Assembly: System.Web (in system.web.dll)
public: virtual property TableRowSection TableSection { TableRowSection get (); void set (TableRowSection value); }
/** @property */ public TableRowSection get_TableSection () /** @property */ public void set_TableSection (TableRowSection value)
public function get TableSection () : TableRowSection public function set TableSection (value : TableRowSection)
Not applicable.
Property Value
A TableRowSection value. The default is TableBody.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. | |
| TableBody | 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.