title: Differences clear function of gridview
body: <p><a href="https://stackoverflow.com/questions/2252868/how-to-clear-gridview">How can I clear data in a GridView?</a>  is appeared </p>
  
  <pre><code>     GridView1.DataSource = null;
       GridView1.DataBind();
  </code></pre>
  
  <p>I want to Know difference of </p>
  
  <pre><code>     GridView1.Clear();
  </code></pre>
  
  <p>two function of  GridView1.Clear()  and GridView1.DataSource = null.I have no error which clear  of syntax of GridView1.Clear().</p>
  
  <pre><code>Public Sub Clear()
      Data.Dispose()
      Data = New DataSet
      MyBase.DataSource = Nothing
  End Sub
  </code></pre>
  
  <p>I wrote new class of gridview  Inherits System.Windows.Forms.DataGridView.Vb class called  my clear function in its class.Sorry,gridview.Clear() is not have.</p>