asp.net.ph

TableCellCollection.Remove Method

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
);

Parameters

cell
The TableCell to remove from the collection.

Remarks

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.

Example

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 );
  C# VB

See Also

TableCellCollection Members   Cells.RemoveAt   Cells.Clear   Cells.Add   Cells.AddAt 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