| Author: Anil Kumar Pandey 24 Sep 2008 | Member Level: Diamond | Rating:  Points: 3 |
hi,
please check that what are the values coming in the dt.Rows[0][2].ToString())
may be the value u are trying to convert is not in a convertable format..
Regards Anil
Thanks & Regards Anil Kumar Pandey
|
| Author: Sathish Kumar 24 Sep 2008 | Member Level: Gold | Rating:  Points: 4 |
hi,
check the Value of dt.Rows[0][2],dt.Rows[0][3],t.Rows[0][4] Whether it holding any string or null value.
double actual =Convert.ToDouble(dt.Rows[0][2].ToString()); double estimated =Convert.ToDouble(dt.Rows[0][3].ToString()); double done =Convert.ToDouble(dt.Rows[0][4].ToString()); a = (actual * (10 - done)) / done;
|