System.Web.UI.WebControls.TableRow.TableSection Property

Gets or sets the location for a System.Web.UI.WebControls.TableRow object in a System.Web.UI.WebControls.Table control.

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.TableRowSection.TableBody)]
public virtual TableRowSection TableSection { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TableRow.TableSection property to get or set where the System.Web.UI.WebControls.TableRow object is placed in a System.Web.UI.WebControls.Table control. For the available table locations, see System.Web.UI.WebControls.TableRowSection. The following table lists the possible values.

TableRowSection.TableHeader

The header row.

TableRowSection.TableBody

The body of the table.

TableRowSection.TableFooter

The footer row.

When using the declarative syntax, the sections must be in the order of header, body, and then footer.

The System.Web.UI.WebControls.TableRowSection enumeration enables you to build accessible Web sites using the System.Web.UI.WebControls.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.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0