title: Error: Both DataSource and DataSourceID are defined on 'GridView2'. Remove one definition.?
body: <p>when I write this query (using LINQ):</p>
  
  <pre><code>        Dim hw22 = From hw In db.HWs _
                     Select hw
  </code></pre>
  
  <p>then:</p>
  
  <pre><code>        GridView2.DataSource = hw22
          GridView2.DataBind()
  </code></pre>
  
  <p>this error occurs: <a href="http://www.rofof.com/img2/6hscmu7.gif" rel="nofollow noreferrer">http://www.rofof.com/img2/6hscmu7.gif</a></p>
  
  <p>How can I solve this?</p>