System.Web.UI.WebControls Namespace TableRowCollection Class
Removes a row from a Table.
[ VB ] Public Sub Remove ( _ ByVal row As TableRow _ ) [ C# ] public void Remove ( TableRow row ); [ C++ ] public: void Remove ( TableRow* row ); [ JScript ] public function Remove ( row : TableRow );
Use the Remove method to remove the specified TableRow from the TableRowCollection. If you need to remove a TableRow 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 row from a Table control at run time.
// locate the row to remove TableRow row = myTable.Rows [ 0 ]; // remove the row from the Rows collection myTable.Rows.Remove ( row );
' locate the row to remove Dim row As TableRow = myTable.Rows ( 0 ) ' remove the row from the Rows collection myTable.Rows.Remove ( row )
TableRowCollection Members Rows.Add Rows.AddAt Rows.AddRange Rows.RemoveAt 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