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.
Hello,
Thank you for your feedback. Please let us know if you need any further assistance with this matter.
Thank you for using Infragistics Components.
Mike,
The AfterCellCancelUpdate does solve the Esc key problem. Our other problems seem to have been caused by using SuggestAppend with a DropDown control. Changing the mode to Append seems to have solved our other problems and the functionality seems to be the same. I see now that the documentation does state that Suggest doesn't work with DropDowns, but perhaps something stronger than that would help (like an exception). Thanks for your help.
Hi,
For the escape key, you can handle the AfterCellCancelUpdate event of the grid.
Hi Hristo,
I am able to demonstrate the problem with your sample program. After the form loads, I drop down the list and select Two; the CellChange event appears in the list box. If I then press the Esc key, the text changes back to One, but there is no event in the list. I've attached a screen copy.
The version of the UltraWinGrid assembly is 11.1.20111.2020.
I have created a sample, where I have UltraGrid and I am handle CellChange event, and I am not sure that I see your issue. Could you please run my sample and let me know the exact steps which I should follow, in order to reproduce your issue. Also, could you please let me know the exactly service release of 11.1 which you are using.
I am waiting for your response.