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




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