System.Web.UI.HtmlControls.HtmlTableCellCollection Class

A collection of System.Web.UI.HtmlControls.HtmlTableCell objects that represent the cells in a single row of an System.Web.UI.HtmlControls.HtmlTable control. This class cannot be inherited.

See Also: HtmlTableCellCollection Members

Syntax

public sealed class HtmlTableCellCollection : ICollection

Remarks

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

Note:

An System.Web.UI.HtmlControls.HtmlTable control contains a HtmlTable.Rows property that contains a collection of System.Web.UI.HtmlControls.HtmlTableRow objects. Each System.Web.UI.HtmlControls.HtmlTableRow object represents an individual row in the table. An System.Web.UI.HtmlControls.HtmlTableRow object 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 a row. To retrieve an individual cell, first get the System.Web.UI.HtmlControls.HtmlTableRow object that represents the row containing the cell in the table (from the HtmlTable.Rows collection of the System.Web.UI.HtmlControls.HtmlTable control). You can then get the System.Web.UI.HtmlControls.HtmlTableCell object that represents the cell in the row (from the HtmlTableRow.Cells collection of the System.Web.UI.HtmlControls.HtmlTableRow object).

Requirements

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