title: convert datarow string to decimal in c#
body: <p>i have a datatable that comes form a excel file but it seem that it's impossible to convert text field into decimal with dot instead of comma.</p>
  
  <p>i have tried using culture but result is with comma or without punctation</p>
  
  <p>for example "4,65" become "465" or "4,65" but not "4.65"</p>
  
  <p>strange thinks is that this code is work </p>
  
  <pre><code>var price = decimal.Parse("4,65", new NumberFormatInfo() { NumberDecimalSeparator = "," });
  
  price = 4.65
  </code></pre>
  
  <p>but this not work</p>
  
  <pre><code>var price = decimal.Parse(excelRow[0][7].ToString(), new NumberFormatInfo() { NumberDecimalSeparator = "," });
  
  price = "4,65";
  </code></pre>
  
  <p>this is  other trial</p>
  
  <pre><code>decimal price = Convert.ToDecimal(excelRow[0][7].ToString());
  var price =decimal.Parse(excelRow[0][7].ToString().Replace(',', '.'), CultureInfo.InvariantCulture);
  ar price =decimal.Parse(excelRow[0][7].ToString(), new CultureInfo("en-US"));
  decimal price =(decimal)excelRow[0][7];
  string price = String.Format("{0:0.##}", (decimal) excelRow[0][7]); 
  string sPrice = excelRow[0][7].ToString();
  decimal price = decimal.Parse(sPrice, new NumberFormatInfo() { NumberDecimalSeparator = "," });
  </code></pre>