title: Input string was not in a correct format
body: <p>I have a small problem here. When I tried to do the following steps,</p>
  
  <pre><code>string set1="123.10,134.40";
  string set2="17,134"; 
  List&lt;string&gt; List1 = new List&lt;string&gt;(set1.Split(','));
  List&lt;string&gt; List2 = new List&lt;string&gt;(set2.Split(','));
  
  var QueryResult = from D1 in List1 
                    from E1 in List2
                    select new
                    {
                        D1,
                        E1
                    };
  DataTable tempDT = new DataTable();
  tempDT.Columns.Add("Data1", typeof(int));
  tempDT.Columns.Add("Data2", typeof(string));
  
  foreach (var item in QueryResult)
  {
      tempDT.Rows.Add(new object[] {Convert.ToInt32(item.E1.ToString()),
      Convert.ToString(item.D1.ToString()) });
  }
  </code></pre>
  
  <p>When I try to add those values to the <code>tempDT</code> I am getting an exception:</p>
  
  <blockquote>
    <p>Input string was not in a correct format.</p>
  </blockquote>
  
  <p>How do I fix this issue?</p>