asp.net.ph

TableCellCollection.RemoveAt Method

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

Parameters

index
The index number of the TableCell to remove.

Remarks

Use this method to remove a TableCell object at the specified index location in a TableCellCollection.

Example

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

See Also

TableCellCollection Members   Cells.Remove   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