DataSet::Clear Method ()
.NET Framework (current version)
Clears the DataSet of any data by removing all rows in all tables.
Assembly: System.Data (in System.Data.dll)
If the DataSet is bound to an XmlDataDocument, calling DataSet::Clear or DataTable::Clear raises the NotSupportedException. To avoid this situation, traverse each table, removing each row one at a time.
.NET Framework
Available since 1.1
Available since 1.1
Show: