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
156
Want to call CellExitingEditMode programatically
posted

Hello,

Whenever i edited any cell value from grid and click on one button which is in that same page, after button click event the CellExitingEditMode events occurs. but i want that before button click, so how i can call this event programatically.

Thanks in advance.

Parents
  • 6475
    Verified Answer
    posted

    Hello,

    This event is fired when the cell exits edit mode. So the cell will exit edit mode when a user presses Enter/Escape keys or when it loses focus (like in your case, when clicking the button). You could also use grid's ExitEditMode() API to exit mode, which will also fire the event you described.

    So if you want to submit the changes, made on the cell, you should call:

       myGrid.ExitEditMode(false);

    Respectively, if you want to cancel the changes, pass "true" as a parameter.

    Hope that helps,

Reply Children
No Data