System.Web.UI.WebControls Namespace TableCellCollection Class
Removes the specified table cell from the Table.Rows collection.
[ VB ] Public Sub Remove ( _ ByVal cell As TableCell _ ) [ C# ] public void Remove ( TableCell cell ); [ C++ ] public: void Remove ( TableCell* cell ); [ JScript ] public function Remove ( cell : TableCell );
Use this method to remove the specified TableCell from the TableCellCollection. If you need to remove a TableCell at a specific location in the collection, use the RemoveAt method.
The following example demonstrates how to use the Remove method to programmatically remove a table cell from a Table.Rows collection.
// locate the cell to remove TableCell cell = myRow.Cells [ 0 ]; // remove the cell from the Cells collection myRow.Cells.Remove ( cell );
' locate the cell to remove Dim cell As TableCell = myRow.Cells ( 0 ) ' remove the cell from the Cells collection myRow.Cells.Remove ( cell )
TableCellCollection Members Cells.RemoveAt Cells.Clear Cells.Add Cells.AddAt
© 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