System.Web.UI.HtmlControls.HtmlTableCellCollection.Clear Method

Removes all System.Web.UI.HtmlControls.HtmlTableCell objects from the System.Web.UI.HtmlControls.HtmlTableCellCollection collection.

Syntax

public void Clear ()

Remarks

Use this method to remove all System.Web.UI.HtmlControls.HtmlTableCell objects from the System.Web.UI.HtmlControls.HtmlTableCellCollection collection and reset the HtmlTableCellCollection.Count property to 0.

Note:

This method removes the cells from a row, but it does not remove the row from the table. To remove a row from the table, be sure to also remove the System.Web.UI.HtmlControls.HtmlTableRow object that represents the row from the HtmlTable.Rows collection of the System.Web.UI.HtmlControls.HtmlTable control.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0