Column has a drop down with auto-complete. How can I force a CellUpdate when the user selects an item from the list and not have to wait for him to hit enter or click a different cell.
I should preface this with a recommendation that you not do this unless you understand the ramifications. Forcing an update before exiting edit mode means that the user cannnot press the Escape key to revert the changes they made during the edit mode session, so if you wqant to avoid this you might want to reconsider your approach.
To answer your question: you can call the grid's Update method to trigger an immediate update. I can't remember whether this takes the cell out of edit mode, but if it does, you can call EnterEditMode on the UltraGrid.ActiveCell to get it back into edit mode.
OK, which event should I catch to then call the Update method on?
And thanks for the warning but this is what the user wants: Click it on the list and have it apply immediately.
You could use AfterCellListCloseUp. The down side is that the event fires whenever the list closes for whatever reason. So if the user closes the list without choosing a new items, it will still fire the event. This is probably not a big deal, but just so you know.
Another option is the CellChange event. The advantage of this event is that it only fires when something changes. The down side of using this event is that it will fire on every keystroke if the user is typing into the cell.
i like to update summaries in ultragrid as soon as user change value in grid cell how it will work?
It works fine when we tab out from cell.
Thanks for your reply.
its working fine now.
In cell update of grid event i write a code to update aciverow ,
So as soon as anychange in cell ,it updates that row, hence update summary.
Hi,
I believe your question is already answered in this thread. What part of this are you still having trouble with?