System.Web.UI.HtmlControls.HtmlTableRow Class

Represents the <tr> HTML element in an System.Web.UI.HtmlControls.HtmlTable control.

See Also: HtmlTableRow Members


[System.Web.UI.ParseChildren(true, "Cells")]
public class HtmlTableRow : HtmlContainerControl


The <tr> element represents a row in a table. Use the System.Web.UI.HtmlControls.HtmlTableRow class to programmatically control the <tr> HTML elements in an System.Web.UI.HtmlControls.HtmlTable control.

The System.Web.UI.HtmlControls.HtmlTableRow class allows you to customize the appearance of a row in a table by specifying the background color, the border color, and the height of the cells in the row. These attributes are set using the HtmlTableRow.BgColor, HtmlTableRow.BorderColor, and HtmlTableRow.Height properties.

You can control the alignment of the contents in the cells for the entire row by using the HtmlTableRow.Align and HtmlTableRow.VAlign properties. The HtmlTableRow.Align property controls the horizontal alignment of the contents of the cells, while the HtmlTableRow.VAlign property controls the vertical alignment.

By using the HtmlTableRow.Cells collection of this class, you can programmatically access the individual cells in a row of a table. This allows you to control the properties of each cell, as well as the content.

For a list of initial property values for an instance of System.Web.UI.HtmlControls.HtmlTableRow, see the HtmlTableRow.#ctor constructor.


Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0,