Validation bug in Spread 2.5.2011!

Posted by: dkennedy on 8 September 2017, 12:39 pm EST

  • Posted 8 September 2017, 12:39 pm EST

    <FONT face=Arial size=2>I recently upgraded my application from Spread 2.5.2007 to 2.5.2011.  I have code that attempts to validate user's input into a cell.  It does this by adding an event handler in the EditModeOn event as shown in the following example:</FONT>

    <FONT size=2><FONT face=Arial>myGrid.EditingControl.Validating += </FONT><FONT face=Arial><FONT color=#0000ff>new </FONT>System.ComponentModel.<FONT color=#2b91af>CancelEventHandler</FONT>(<FONT color=#0000ff>this</FONT>.MyValidatingHandler);</FONT></FONT>

    <FONT face=Arial size=2>When the validation event handler fires, and I can set the CancelEventArg's .Cancel property to true if there is a validation error, and the cell will stay in edit mode.</FONT>

    <FONT face=Arial size=2>However, with 2.5.2011, this no longer works and the cell always leaves the edit mode.  I just tried Spread 2.5.2009 and it is working fine, so the bug was introduced in either 2010 or 2011.</FONT>

  • Replied 8 September 2017, 12:39 pm EST

    Can you post a small project reproducing this for us to debug?
  • Replied 8 September 2017, 12:39 pm EST


    I was able to reproduce this issue and have reported this as a bug (#20822) for the development team to fix for the next maintenance release.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels