Clears the collection of all rows.
[Visual Basic] Public Sub Clear() [C#] public void Clear(); [C++] public: void Clear(); [JScript] public function Clear();
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
RowsCollection Class | RowsCollection Members | System.Data Namespace | Add | Remove