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
2370
CellChanged not called when delete key pressed and not in edit mode
posted

See sample below.

http://1drv.ms/1CsVYmz

Just single-click on the cell with "Bob" in it and press the delete key.

The value is deleted, but CellChanged is not called.  I have CellChanged calling an exception in the sample.  In my real project, I call some code that marks the grid as "dirty" so I know to save some other things.

Thanks,

Jon

  • 34810
    Verified Answer
    Offline posted

    Hello Jon,

    Thank you for your post.

    I have reproduced this behavior you are describing with the XamDataGrid CellChanged event, but this is actually expected behavior. If you take a look at the class members for the XamDataGrid in our online documentation here, you will see that CellChanged fires for the value being modified when the cell is in edit mode. Following the steps you have provided, the cell never really gets to that point.

    I would recommend that you take a look at the CellUpdated event, as this is a more generic "occurs after a cell's value is updated" type of event.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support