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
520
Urgent: FormatException when entering invalid data in UltraGrid cell
posted

FormatException: "Input string was not in a correct format" error is thrown when I enter "abc" into a float column. 

None of the cell events is catching this exception including CellDataError, CellChange, Before/AfterCellUpdate, BeforeCellDeactivate, AfterExitEditMode.

The error kicks out directly to Application.Run in the Main() and crashes the app.

I don't think this should be the intended behavior. At any rate, any data exception should be trappable and not crash the app.

Is there an event or setting that I am missing?

I need to fix this asap.  Any help greatly appreciated.

Parents
  • 469350
    Verified Answer
    Offline posted

    I tried this out and almost all of the events you listed here fire. My guess is that you are running without the Debugger attached or maybe you have a try...catch block around your Main method so you are catching all exception.

Reply Children