title: Min (5) must be less than or equal to max (-1) in a Range object?
body: <p>I am getting the error in the inner <code>foreach</code> while using <code>Select</code> in <code>datatable</code>.</p>
  
  <p>Here is the code I tried so far</p>
  
  <pre><code>foreach (DataRow drOuter in dtLogic.Select("Name='&gt;' OR Name='='"))
  {
       foreach (DataRow drInner in dtLogic.Select("ParentId=" + Convert.ToInt64(drOuter["Id"]) + ""))
       {  
  
       }
  }
  </code></pre>
  
  <p>where <code>Convert.ToInt64(drOuter["Id"])</code> have the value <code>2107362180</code> when I checked in <code>Immediate Window</code>. <br> Then why does it throw the below error?</p>
  
  <p><img src="https://i.stack.imgur.com/XuOrh.jpg" alt="enter image description here"></p>