title: ASP.net LINQ on DataView
body: <p>When i have a DataView Operation as</p>
  
  <pre><code> EnumerableRowCollection&lt;DataRow&gt; query 
      = from order in _table.AsEnumerable()
        where order.Field&lt;Int32&gt;("key") &gt; 2 &amp;&amp; order.Field&lt;Int32&gt;("key") &lt; 4
        select order.Field&lt;Int32&gt;("key")=1000, order.Field&lt;string&gt;("name");   
  </code></pre>
  
  <p>I can't form the above expression.</p>
  
  <p>When i try</p>
  
  <pre><code>select new {key= 1000,name= order.Field&lt;string&gt;("name") };
  </code></pre>
  
  <p>i got</p>
  
  <pre><code>    Cannot implicitly convert type 
     'System.Data.EnumerableRowCollection&lt;AnonymousType#1&gt;'   
      to 'System.Data.EnumerableRowCollection&lt;System.Data.DataRow&gt;'
  </code></pre>
  
  <p>How to form the right query? My task is to replace the key with 1000 and leave the name as is.</p>