Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
FormatException - Input String was not in a correct format
posted

This problem was kicking my butt for quite a few hours (in between getting side-tracked by other problems at work).

The line of code which caused the problem was in the Grid.InitializeRow method and looked like this:

Dim MyDecimalValue as Decimal = e.row.cells("AnyDoubleField").Value

Earlier in the day I had changed all of my unbound columns from string to decimal.

One of my unbound fields was populated with a string value.  It had nothing to do with the line shown.

I changed the one field which was being populated with a string value to a string datatype and this problem went away.

  • 71886
    Offline posted

    Hello,

    Thank you for the provided information. We believe that the other community members could benefit from this thread.

    Please do not hesitate to ask if something comes up.