This documentation is archived and is not being maintained.

TableRow::Cells Property

Gets a collection of TableCell objects that represent the cells of a row in a Table control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[PersistenceModeAttribute(PersistenceMode::InnerDefaultProperty)]
public:
virtual property TableCellCollection^ Cells {
	TableCellCollection^ get ();
}

Property Value

Type: System.Web.UI.WebControls::TableCellCollection
A TableCellCollection object that represents a collection of cells from a row of a Table control.

Use this property to programmatically control a collection of TableCell objects that represent the cells from a row of the Table control. You can programmatically add, insert, or remove a TableCell object from the collection.

NoteNote

This property is only used when building Table controls programmatically. At design time, this property is set by declaring TableCell objects.

This following code example creates a table, programmatically adds elements to the table, and displays the table on the Web page.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

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.
Show: