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
295
Removing a selected row(in edit mode) from grid
posted

Hi, 

Situation: I have a situation where the user is allowed to create rows in a grid and edit its content.
There is also a button that allows the user to remove rows. This is done using the selectedItem from the grid. 

Case: The user is editing a cell in a selected row, but then decides the row is no longer needed, and tries to delete the row (which is now in edit mode).
The method which deletes the row then tries to get the selected row from that grid, but gets null back. 

Proposed solution: So my question, is there a way that I can tell my grid to persist all pending edits in the grid, so the GetSelectedRow will not return null? 

Kind regards, 

Tobias