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.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

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