title: clear all records from data set in vb.net
body: <p>i am working on vb.net windows form..in my button click i have given code like this:</p>
  
  <pre><code>  Dim rpt As New DelivaryPerformance
       Dim ds As New DataSet
         Dim da As New SqlDataAdapter
           Dim rpt As New DelParkingtype
          Dim locid As Integer = RecordID("Locid", "Location_tbl", "LocName", CmbLocations.Text)
          Dim cmdstatus As New SqlCommand("IBS_DelivaryStaus", con.connect)
          cmdstatus.CommandType = CommandType.StoredProcedure
          cmdstatus.Parameters.Add("@locid", SqlDbType.Int).Value = locid
          da.SelectCommand = cmdstatus
          da.Fill(ds)
          If (ds.Tables(0).Rows.Count &gt; 0) Then
  
              rpt.SetDataSource(ds.Tables(0))
              ' CrystalReportViewer1.ReportSource = rpt
          End If
  </code></pre>
  
  <p>while i am clicking each time in my button click,,i want to clear all records from my data set,,how i can clear my all records from my dataset</p>