System.Web.UI.HtmlControls.HtmlTableRowCollection Class

A collection of System.Web.UI.HtmlControls.HtmlTableRow objects that represent the rows of an System.Web.UI.HtmlControls.HtmlTable control. This class cannot be inherited.

See Also: HtmlTableRowCollection Members

Syntax

public sealed class HtmlTableRowCollection : ICollection

Remarks

Use the System.Web.UI.HtmlControls.HtmlTableRowCollection class to programmatically manage a collection of System.Web.UI.HtmlControls.HtmlTableRow objects that represent the rows in an System.Web.UI.HtmlControls.HtmlTable control. This class is commonly used to add, remove, or modify the contents of a row in an System.Web.UI.HtmlControls.HtmlTable control.

Note:

An System.Web.UI.HtmlControls.HtmlTable control contains a HtmlTable.Rows property that represents a collection of System.Web.UI.HtmlControls.HtmlTableRow objects. Each System.Web.UI.HtmlControls.HtmlTableRow represents an individual row in the table. An System.Web.UI.HtmlControls.HtmlTableRow contains a HtmlTableRow.Cells property that represents a collection of System.Web.UI.HtmlControls.HtmlTableCell objects. These objects, in turn, represent the individual cells of the table. To retrieve an individual cell, first get the System.Web.UI.HtmlControls.HtmlTableRow object, representing the row containing the cell, from the HtmlTable.Rows collection of the System.Web.UI.HtmlControls.HtmlTable control. You can then get the System.Web.UI.HtmlControls.HtmlTableCell object, representing the cell in the row, from the HtmlTableRow.Cells collection of the System.Web.UI.HtmlControls.HtmlTableRow.

Requirements

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