Convert.ToInt32() conditional formatting according to string with comma
<pre><code>string str = e.Row.Cells[index].Text;

int value = Int32.Parse(str, NumberStyles.AllowThousands, NumberFormatInfo.InvariantInfo);
if (value &gt;= 100)
    e.Row.Cells[index].BackColor = System.Drawing.Color.Green;
</code></pre>

<p>Cell values are 168,88 - 125,45 - 75,3 </p>

<p>After parsing str returns 16888 - 12545 - 753 , so all of the cells are set as green</p>

<p>how can i compare real values.?</p>
