title: Query a DataSet using LINQ
body: <p>I have a DataSet that I fill with a SQL select query. I then need to perform an extra query on this DataSet to filter the data some more, using LINQ to DataSet. I then want to hook this LINQ result up to some Data Control (Repeater or GridView) It is not working so well though.</p>
  
  <p>Here is what I've tried so far:</p>
  
  <pre><code>Dim sql As String = "SELECT * from someTable"
  Dim ds As New System.Data.DataSet()
  ds = db_functions.DB_GetDS(sql) 'Helper function that returns a dataset, not important
  
  Dim res = (From s In ds.Tables(0) Where s.Field(Of Date)("date") &gt; Date.Today Select s).ToList
  
  GridView1.DataSource = res
  GridView1.DataBind()
  </code></pre>
  
  <p>When I run the page, using a GridView, there is a GridView with one row and two fields - RowError and HasRows, and there is no data in the row. One row would be the correct number in this example, so the where clause seems to be evaluated correctly. But why no data?</p>
  
  <p>If I Use a Repeater instead, the page is blank.</p>
  
  <p>Any ideas?</p>