Posted 11 February 2020, 6:26 am EST
I am having some trouble making sense of how to allow a user to easily add/edit rows in a Flex Grid. Basically, I need the FlexGrid to remain in edit mode until the user Hits “Enter” or otherwise exits the row being added/edited. They need to be able to tab between or use left/right arrow keys to move between columns without exiting edit mode. I need to identify whey they have hit the “Enter” key in order to then exit edit mode so that I can then handle the new row or the changes made to an existing row.
The problem is that the AfterEdit event fires every time the user exits a column. PreserveEditMode does not seem to do anything and even if it did, I don’t know how how to identify when the “Enter” key is pressed to then exit edit mode and trigger the AfterEdit event.
I have no problem identifying which row was edited using the e.Row value but without being able to allow the user to edit multiple columns and then deliberately exit edit mode by hitting “Enter” or exiting the row being edited, I am stuck.
Thanks,
Mike