CheckBoxCellType erroneously fires a grid change event

Posted by: scottp on 21 August 2024, 2:50 am EST

  • Posted 21 August 2024, 2:50 am EST

    Hello,

    I have a checkbox cell, and by simply tab-ing over the cell I get the grid firing a change event (the check state has NOT changed). It happens when the grid’s EditModePermanent property is set to true.

    I have attached a sample project demonstrating the issue. Please download and extract the attached sample project. Open the solution, run it, click OK if you get a license warning, and then once the windows form has loaded press tab twice to see the issue.

    Please advise of an existing workaround or if you raise a ticket to have this fixed. Let me know if you require anything else to assist.

    Regards,

    Scott

    GridCheckBoxTest.zip

  • Posted 23 August 2024, 7:57 am EST

    Hi Scott,

    Thanks for providing the sample and the detailed explanation of the issue.

    According to the developers, this is the desired behavior. FpSpread’s Change event is fired after the user modifies data in a cell.

    When FpSpread’s EditModePermanent property is set to true, it will start editing on entering the cell and the editing will be stopped on leaving the cell.

    In this case, the editing control of the CheckboxCellType is the FpCheckbox. The value of the cell is different from the value of the editing control. The old value of this cell is null. When it enters the edit mode, the value of FpCheckBox is obtained to be false. So, after the cell edit ends, the cell values changes from null to false and Change event is fired.

    Hope this helps you understand the behavior.

    In case you still have any doubts, please explain your use-case and why this behavior is troubling you so that we can investigate it further.

    Thanks & Regards,

    Aastha

Need extra support?

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

Learn More

Forum Channels