System.Web.UI.WebControls.TableRowCollection Class

Encapsulates a collection of System.Web.UI.WebControls.TableRow objects that represent a single row in a System.Web.UI.WebControls.Table control. This class cannot be inherited.

See Also: TableRowCollection Members

Syntax

[System.ComponentModel.Editor("System.Web.UI.Design.WebControls.TableRowsCollectionEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public sealed class TableRowCollection : IList

Remarks

Use this class to programmatically manage a collection of System.Web.UI.WebControls.TableRow objects. This class is commonly used to add or remove rows from a System.Web.UI.WebControls.Table control.

Note:

A System.Web.UI.WebControls.Table control contains a Table.Rows collection that represents a collection of System.Web.UI.WebControls.TableRow objects. Each System.Web.UI.WebControls.TableRow represents an individual row in the table and contains a TableRow.Cells collection that represents a collection of System.Web.UI.WebControls.TableCell objects. These System.Web.UI.WebControls.TableCell objects represent the individual cells in the table. To get an individual cell, you must first get a System.Web.UI.WebControls.TableRow from the Table.Rows collection of a System.Web.UI.WebControls.Table control. You can then get a System.Web.UI.WebControls.TableCell from the TableRow.Cells collection of the System.Web.UI.WebControls.TableRow.

Requirements

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