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
1150
Modify Enter behavior to commit current cell only and tab to next cell.
posted

Hello,

I modified the behavior of the XamDataGrid on Enter key press.
Instead of committing the record, I want to commit the current cell and tab to the next cell.
The attached sample demonstrates this. 

To get this behavior, I intercept the PreviewKeyDown event,
and when it is the return key, the CellNextByTab command is executed instead.

This works great on simple data cells.
But when in a DopDown cell, the selected value is not committed to the cell any more.
I know why, because the DropDown never gets the Enter key. But I do not know how to fit both needs together.

Any idea?
Thank you! 

XamDataGridEnterBehavior.zip
Parents Reply Children
No Data