asp.net.ph

HtmlTableRowCollection.Remove Method

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

Parameters

row
The table row to remove from the collection.

Remarks

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.

Example

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 

See Also

HtmlTableRowCollection Members   Rows.RemoveAt   Rows.Clear Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note