Removing All Data

The Clear( ) method removes all rows from the DataTable:

dt.Clear();

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.