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
690
CellChange event
posted

I have several cases where I'm using the CellChange event to react to changes in a grid, which usually involves updating another column in the grid. The problem I'm having is that if the user changes back to the original contents of the cell without leaving the cell (either by hitting the Esc key or reentering the original contents) the event doesn't fire and the other columns no longer show the correct information.

The workaround seems to be to use the KeyUp event, along with using the Cell.EditorResolved property to read the correct text out of the cell. It seems to be working, but I think it's a lot of effort to handle a fairly common scenario. I'm wondering if this is the intended behavior and if there's an easier way to do this.

Parents
  • 469350
    Offline posted

    Hi,

    CellChange fires on every change to the text of a cell, it makes no difference what the original value was. Are you sure that the event is not firing? Perhaps your code is checking the current Text of the cell against the original value and that's why your code is not getting triggered.

    If CellChange is, in fact, not firing when you change the text of the cell back to the original value, then that is clearly a bug.

Reply Children