title: Conversion from string " " to type 'Decimal' is not valid. - VB
body: <p>trying to convert it to decimal gives error 
  it is row cell of gridview</p>
  
  <pre><code>e.Row.Cells(i).Text = If(CType(e.Row.Cells(total).Text, Decimal) = 0, "-", (CType(e.Row.Cells(total).Text, Decimal) * 100 / CType(e.Row.Cells(total).Text, Decimal)).ToString("0.00") + "%")
  </code></pre>