System.Web.UI.WebControls.TableRowSection Enumeration

Specifies where a System.Web.UI.WebControls.TableRow object is placed in a System.Web.UI.WebControls.Table control.

Syntax

public enum TableRowSection

Remarks

The System.Web.UI.WebControls.TableRowSection enumeration specifies whether a System.Web.UI.WebControls.TableRow object is placed in the body, header, or footer of a System.Web.UI.WebControls.Table control.

The System.Web.UI.WebControls.TableRowSection enumeration represents the possible values for the TableRow.TableSection property of the System.Web.UI.WebControls.TableRow class.

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.

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

Members

Member NameDescription
TableBody

The System.Web.UI.WebControls.TableRow is placed in the body of the System.Web.UI.WebControls.Table.

TableFooter

The System.Web.UI.WebControls.TableRow is placed in the footer of the System.Web.UI.WebControls.Table.

TableHeader

The System.Web.UI.WebControls.TableRow is placed in the header of the System.Web.UI.WebControls.Table.

Requirements

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