FrozenColumnCount > 1 causing endless edit end loop

Posted by: patrickc on 10 September 2017, 10:58 am EST

  • Posted 10 September 2017, 10:58 am EST

    I have no frozen columns, I have no problem.  I freeze some columns, my code enters an endless edit end loop after keying in a value and tabbing out of the edited cell.


    Tough to explain... let's say I have visible columns frozen up to and including column 4 (frozencolumn.count = 5).  Now, I key a value into column 15 of the active row.  After entering the value, I tab out of the active cell.  My code analyzes many things, but the only change my code makes to the spreadsheet is to put a calculated value into column 16 within the active row.  I expect the EditEnd event to fire once for column 15, but it just keeps firing.  To be clear, I thought it might be firing for the coded change to column 16, but a check shows it just keeps firing for column 15.


    With no other change to my code, I can skip freezing columns so there are none frozen, duplicate my entry into column 15, allow the code to place the calculated value into column 16 within the active row and the EditEnd event only fires once.


     

  • Replied 10 September 2017, 10:58 am EST

    Hello,

    Could you please provide me a sample application to reproduce this issue? Also let me know the steps to reproduce the issue.

    Thanks,
    Deepak Sharma
  • Replied 10 September 2017, 10:58 am EST

    Simple tests:
    1: create new solution, add spread control, add code for editend event.
    2: add a stop at the editend event.
    3: run it, type something into a cell and tab out.
    result: editend event fires once.

    4: after initialization in main, add gcSpreadSheet1.ActiveSheet.FrozenColumnCount = 5;
    5: run it, type something into a cell and tab out.
    result: editend event fires twice.

    what i ran into was the editend event firing until I got a stack overflow error. I will take a look at my full application next week to see if I can remember all the details so you can duplicate. It has been a while since I posted about this.
  • Replied 10 September 2017, 10:58 am EST

    Hello,

    Thank you for letting me know the steps to replicate the issue. I can reproduce the issue at my end now and hence I have reported it to the concerned team as a bug. The bug id for this issue is 3097.
    I will let you know as soon as I get any update on this.


    Thanks,
    Deepak Sharma
  • Replied 10 September 2017, 10:58 am EST

    Hello,

    This issue has been fixed for our latest version of Spread for WPF/Silverlight which is available for download on our website.

    Thanks,
    Deepak Sharma
Need extra support?

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

Learn More

Forum Channels