I am getting "System.InvalidOperationException: Operation is not valid due to the current state of the object.  " when it tries to execute the                           if (oDR["CountPO"] == null)  line of code.  
Any ideas? Thanks.

               for (int i = 0; i < dt2.Rows.Count; i++)                 {                     string contract = dt2.Rows[i][0].ToString();                     {   & ...

Go to the complete details ...