Flexgrid and Event BeforeEdit

Posted by: r.trofymchuk on 12 November 2018, 11:50 am EST

  • Posted 12 November 2018, 11:50 am EST - Updated 4 October 2022, 1:59 am EST

    Hello.

    I have installed the last Version of Component One 4-0-20183-338 for WinForms (Windows 10).

    I have a form with the Flexgrid and when I select cells from one to another by mouse, the event “BeforeEdit” fires many many times. The same situation happens when I use scroll in the flexgrid.

  • Posted 13 November 2018, 4:37 am EST

    Hi,

    this is the expected behavior: the “BeforeEdit” event has a misleading name: it is actually fired before the grid renders a cell. Dependening on the result of the event handler, the grid might render e.g. a drop down arrow for editable cells.

    If you want to check whether a cells is editable just before the user starts editing, handle the “StartEdit” event.

    Best regards

    Wolfgang

  • Posted 13 November 2018, 4:55 am EST

    Hello,

    Thanks for explanation Wolfgang.

    Wolfgang’s explanation is correct. You can use the “StartEdit” event to check whether a cell is editable just before the user starts editing.

    Regards.

  • Posted 13 November 2018, 5:13 am EST - Updated 4 October 2022, 1:59 am EST

    In the prevous version of the components, the event “BeforeEdit” fired ONLY in the certain selected cell.

    So the question: why this event fires for all another cells now?

  • Posted 14 November 2018, 7:08 am EST

    Hello,

    I have escalated the case to our developer team(353449) and will update you once I get any information from them.

    Thanks

Need extra support?

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

Learn More

Forum Channels