asp.net.ph

HtmlTableCellCollection Class

System.Web.UI.HtmlControls Namespace


Provides access to the collection of table cells found within a row in a table.

HtmlTableCellCollection Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public Count Int32 [ Get ]
public IsReadOnly Boolean [ Get ]
public IsSynchronized Boolean [ Get ]
public Item ( Int32 index ) HtmlTableCell [ Get ]
public SyncRoot Object [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public Add ( HtmlTableCell cell ) Void
public Clear ( ) Void
public CopyTo ( Array array , Int32 index ) Void
public GetEnumerator ( ) IEnumerator
public Insert ( Int32 index , HtmlTableCell cell ) Void
public Remove ( HtmlTableCell cell ) Void
public RemoveAt ( Int32 index ) Void

Remarks

An HtmlTable control has a Rows property that contains a collection of HtmlTableRow objects, each representing an individual row in the table.

An HtmlTableRow in turn has a Cells property that contains a collection of HtmlTableCell objects, each representing an individual cell in the row.

Use the HtmlTableCellCollection class, exposed via the HtmlTableRow.Cells collection, to programmatically manage the collection of table cell objects in a given row.

This class defines the properties and methods that enable programmatic acess to any or all items in the collection, using simple array notation.

To retrieve an individual cell, first get the HtmlTableRow that represents the row containing the cell in the table, using the HtmlTable.Rows collection. You can then get the HtmlTableCell that represents the cell in the row, using HtmlTableRow.Cells collection.

myTable.Rows [ index ].Cells [ index ] 
  C# VB

This class is mainly used to dynamically add, remove, or modify the contents of a cell in the HtmlTableRow control.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlTable in ASP.NET Syntax for HTML Controls.

See Also

HtmlTable   HtmlTableCell   HtmlTableRow   HtmlTableRowCollection Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph