This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
When the user edits a text cell that is not in the last row, and then presses Enter, the edit ends, the new value is saved, and the highlighted cell moves down to the next row. However, when the user edits a cell on the last row and presses Enter, nothing happens (you can see this in the first grid sample of the Sample Explorer). Obviously the highlighted cell cannot move down to the next row in this case, but it seems like it would be more consistent behavior if the edit would still end. If IsEditModeArrowKeyNavigationEnabled is false (the default) then it seems the only way the user can complete an edit is to click in another cell with the mouse. I believe users expect editing to end when they press Enter--even in the last row of a grid. Is there a way I can get this behavior? Peter |
|
|
Hello Peter Thanks for the suggestion. In the next nightly build, pressing Enter at the end of a column (or Shift+Enter at the top) will finish editing and switch back to display/select mode. -Jason Fauchelle |
|
|
Hi Jason, Thanks for the update. However, I still notice a bit of a problem when editing the last cell, which you can see in the first grid sample of the Sample Explorer. Edit the Gender column of the last row (for example), and end the edit with the Enter key. The grid does appear to leave edit mode, as expected. However, the arrow keys now appear not to work, and the user is "stuck" in the edited cell until he clicks on another cell with the mouse. Peter |
|
|
Hello Peter Thanks for pointing this out. I hadn't restored focus to the DataGrid after the cells exited edit mode. This will be resolved in the next nightly build. -Jason Fauchelle |
|