title: Search DataTable using LINQ
body: <pre><code>           table
  Sr. No. | Arrival    | Departure  | 
  -----------------------------------
  1       | 10/08/2018 | 11/08/2018 |
  -----------------------------------
  2       | 11/08/2018 | 12/08/2018 |
  -----------------------------------
  3       | 12/08/2018 | 13/08/2018 |
  -----------------------------------
  4       | 13/08/2018 | 14/08/2018 |
  </code></pre>
  
  <p>I have the dataTable name table. and i want to search data greater than 11/08/2018 and show result in dataGridView1 . I am using below code but its not working. </p>
  
  <pre><code>  var dtCurrnet = DateTime.Now.Date;
  
          EnumerableRowCollection&lt;DataRow&gt; query = from arrvDate in dtReservation.AsEnumerable()
                                       where arrvDate.Field&lt;DateTime&gt;("ArrvDate") &gt; dtCurrnet
                                       select arrvDate;
  
  
          DataView view = query.AsDataView();
          DataTable dtTest = view.ToTable(); 
  
          dataGridView1.DataSource = dtTest;
  </code></pre>
  
  <p>I am having problem with "where arrvDate.Field("ArrvDate") > dtCurrnet" Getting Error Message "Specified cast is not valid" </p>