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)

public virtual TableCellCollection Cells { get; }
/** @property */
public TableCellCollection get_Cells ()

public function get Cells () : TableCellCollection

Not applicable.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

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