asp.net.ph

HtmlTableRowCollection.Clear Method

System.Web.UI.HtmlControls Namespace   HtmlTableRowCollection Class


Removes all table row objects from the Rows collection of a given table.

[ VB ]
Public Sub Clear ( )

[ C# ]
public void Clear ( );

[ C++ ]
public: void Clear ( );

[ JScript ]
public function Clear ( );

Remarks

Use this method to remove all HtmlTableRow objects from the Rows collection of a specified table.

This method resets the Rows.Count property to 0.

Example

The following example demonstrates how to use the Rows.Clear method to dynamically remove the rows in a table.

myTable.Rows.Clear ( );

 Show me 

See Also

HtmlTableRowCollection Members   Rows.Remove   Rows.RemoveAt 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