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
1065
Press space bar or F2 key to make a cell in edit mode.
posted

Hello,

When a cell is selected in XamDataGrid, can I press the space bar or F2 key to make it in edit mode? If so, are there any examples?

Thanks.

Parents
No Data
Reply
  • 69686
    Verified Answer
    posted

    Hello,

    F2 is natively supported for entering edit mode, however the "space" key is not. What you can do is handle the PreviewKeyDown event of the XamDataGrid and call the DataPresenterCommands.StartEditMode if the active cell of the XamDataGrid is not already in EditMode.

Children