Input string was not in correct format
It means in there is a valve that doesn't contain a valid integer:
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
Can somebody give me the reason as to why it is happening. Thanks in advance.
It has something to do with the code you provide it
If you are using a DataGrid then it will probably return the type to you in StringToNumber().
You need to get the Value property instead.
You can also used Int32.TryParse Method:
http://msdn.microsoft.com/en-us/library/f02979c7.aspx
LastMitch
Industrious Poster
4,118 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45