TableRow::CellControlCollection Class
System.Web.UI::ControlCollection
System.Web.UI.WebControls::TableRow::CellControlCollection
Assembly: System.Web (in System.Web.dll)
The TableRow::CellControlCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of server controls in the ControlCollection object for the specified ASP.NET server control. (Inherited from ControlCollection.) |
![]() | IsReadOnly | Gets a value indicating whether the ControlCollection object is read-only. (Inherited from ControlCollection.) |
![]() | IsSynchronized | Gets a value indicating whether the ControlCollection object is synchronized. (Inherited from ControlCollection.) |
![]() | Item | Gets a reference to the server control at the specified index location in the ControlCollection object. (Inherited from ControlCollection.) |
![]() | Owner | Gets the ASP.NET server control to which the ControlCollection object belongs. (Inherited from ControlCollection.) |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the collection of controls. (Inherited from ControlCollection.) |
| Name | Description | |
|---|---|---|
![]() | Add | Adds the specified Control object to the TableRow::CellControlCollection collection. (Overrides ControlCollection::Add(Control).) |
![]() | AddAt | Adds the specified Control object to the TableRow::CellControlCollection collection. The new control is added to the array at the specified index location. (Overrides ControlCollection::AddAt(Int32, Control).) |
![]() | Clear | Removes all controls from the current server control's ControlCollection object. (Inherited from ControlCollection.) |
![]() | Contains | Determines whether the specified server control is in the parent server control's ControlCollection object. (Inherited from ControlCollection.) |
![]() | CopyTo | Copies the child controls stored in the ControlCollection object to an System::Array object, beginning at the specified index location in the System::Array. (Inherited from ControlCollection.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Retrieves an enumerator that can iterate through the ControlCollection object. (Inherited from ControlCollection.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf | Retrieves the index of a specified Control object in the collection. (Inherited from ControlCollection.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes the specified server control from the parent server control's ControlCollection object. (Inherited from ControlCollection.) |
![]() | RemoveAt | Removes a child control, at the specified index location, from the ControlCollection object. (Inherited from ControlCollection.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The TableRow::CellControlCollection class represents the collection of TableCell objects of a TableRow control. TableCell objects can be added at the end of the TableRow::CellControlCollection collection with the Add method or at a specified index location in the TableRow::CellControlCollection with the AddAt method.
Only TableCell objects can be added to the TableRow::CellControlCollection collection.
The following code example demonstrates how to create a table, add elements to the table programmatically, and then display the table on the Web page. Note how the Cells property of the TableRow control represents a TableRow::CellControlCollection collection and how the Add method is used to add cells to the row.
This code example is part of a larger example provided for the TableRow class.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.



