System.Web.UI.WebControls Namespace TableCellCollection Class
Removes a row at the specified index in a Table.
[ 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 the RemoveAt method to remove a TableRow object at the specified index location in the TableCellCollection.
The following example demonstrates how to use the RemoveAt method to programmatically remove a TableRow at the specified index location in a Table control at run time.
// get the rows collection TableRowCollection myRows = myTable.Rows; // remove the row at the given index myRows.RemoveAt ( 0 );
' get the row rows collection Dim myRows As TableRowCollection = myTable.Rows ' remove the row at the given index myRows.RemoveAt ( 0 )
TableRowCollection Members Rows.Add Rows.AddAt Rows.AddRange Rows.Remove Rows.Clear
© 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