System.Web.UI.WebControls Namespace TableCellCollection Class
Removes a table cell at the specified index in a Table.Rows collection.
[ VB ] Public Sub RemoveAt ( _ ByVal index As Integer ) [ C# ] public void RemoveAt ( int index ); [ C++ ] public: void RemoveAt ( int index ); [ JScript ] public function RemoveAt ( index : int );
Use this method to remove a TableCell object at the specified index location in a TableCellCollection.
The following example demonstrates how to use the RemoveAt method to programmatically remove a TableCell at the specified index location in a Table.Rows collection.
// get the row cells collection TableCellCollection myCells = myTable.Rows [ 0 ].Cells; // remove the cell at the given index myCells.RemoveAt ( 0 );
' get the row cells collection Dim myCells As TableCellCollection = myTable.Rows ( 0 ).Cells ' remove the cell at the given index myCells.RemoveAt ( 0 )
TableCellCollection Members Cells.Remove Cells.Clear Cells.Add Cells.AddAt
Check out related books at Amazon
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved. If you have any question, comment or suggestion about this site, please send us a note