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
235
EditModeExited And Escape Key
posted

Hi,

I have a problem with cell Editing.

When cell editmode ended, we send data to another device.

but edit and press escape key, also send data...

I don't want send data when press escape key.

I'm not good at english.................. every time I write this comment.. T_T

I want this

1. Press F2 And Write Data To Cell, Like 132, 144, 155....

2. And Enter Key, Send Data To Another Device ( It's OK)

Wrong Action

1. Press F2 And Write Data To Cell, Like 132, 144, 155....

2. Um... It's Wrong number so I press Escape Key to Cancel.

3. But EditModeExited Event Send Data....

How can block this event? EditModeExited Event has no other option, only row number, column number....

Parents
No Data
Reply
  • 2151
    Verified Answer
    Offline posted

    Hello Joseph,

     

    Thank you for your email post. To detect whether the user has confirmed or canceled the new value input you can use the “EditModeExiting” event (instead of the “EditModeExited” event).

    The event arguments object of the “EditModeExiting” event exposes a “AcceptChanges” property for this purpose.

     

    I am attaching a small sample showing how to do it.

     

    Please do not hesitate to let me know if you have any further questions on this matter.

     

    Sincerely,

    Radko Kolev

    Infragistics Inc.

    www.infragistics.com/support

    XamSpreadsheetDetectingConfirmOrCancelUserInput.zip
Children