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




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