asp.net.ph

TableRowCollection.Remove Method

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

Parameters

row
The TableRow to remove from the collection.

Remarks

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.

Example

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

See Also

TableRowCollection Members   Rows.Add   Rows.AddAt   Rows.AddRange   Rows.RemoveAt   Rows.Clear 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