System.Web.UI.HtmlControls Namespace HtmlTableRowCollection Class
Removes the specified table row object from the Rows collection.
[ VB ]
Public Sub Remove ( _
ByVal row As HtmlTableRow _
)
[ C# ]
public void Remove (
HtmlTableRow row
);
[ C++ ]
public: void Remove (
HtmlTableRow* row
);
[ JScript ]
public function Remove (
row : HtmlTableRow
);
- row
- The table row to remove from the collection.
Use this method to remove the specified HtmlTableRow from the HtmlTableRowCollection.
If you specify an HtmlTableRow that does not exist, no item is removed from the collection.
The following example demonstrates how to use the Remove method to dyamically remove the first row of an HtmlTable.
// get table row object to remove
HtmlTableRow myRow = myTable.Rows [ 0 ];
// remove from collection
myTable.Rows.Remove ( myRow );
Show me
HtmlTableRowCollection Members Rows.RemoveAt Rows.Clear