NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RowsCollection.Clear

Clears the collection of all rows.

[Visual Basic]
Public Sub Clear()
[C#]
public void Clear();
[C++]
public: void Clear();
[JScript]
public function Clear();

Example [Visual Basic]

The following example clears a RowsCollection of all items.

[Visual Basic]

Private Sub ClearTable()
   Dim t As DataTable
   Dim rc As RowsCollection
   Set t = DataGrid1.DataGridTable.DataTable
   Set rc = t.Rows
   ' Clear all rows.
   rc.Clear
End Sub

See Also

RowsCollection Class | RowsCollection Members | System.Data Namespace | Add | Remove