7
Reply

Input string was not in a correct format

Chuck Foss

Chuck Foss

Feb 25 2009 3:46 PM
17.3k

My C# .NET 2.0 application code looks like this:

 

gridData.Rows[i - 1][Convert.ToInt32(BillDivColumns.salary)]=

                            (Convert.ToInt32(bdmSet.BILLING_DIV_MEMBER_SET_LIST[i - 1].A_SAL_CNS) / 100).ToString("###,###,##0.00");

The input data is 785.
The data is being displayed as 7.00

When trying to edit the field in the application, I get the error msg: "Input string was not in a correct format."

Can you tell me what I'm doing wrong?

Thank you.

Chuck


Answers (7)