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
800
Ctrl S causes ClearAllSelected
posted

I am using WPF4 v11.2.

If I have a range highlighted and I press Ctrl S, the range gets deselected. The grid does not appear to do this when other Ctrl key combinations are pressed.

Can you tell me why this is and how to prevent it?

Parents
No Data
Reply
  • 138253
    Verified Answer
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I can say that this is the designed behavior of the XamDataGrid. In order to disable this, you can handle CommandExecuting event and check if the Command’s Name is “ClearAllSelected” and if so you can set the e.Handle to true to cancel executing. I attached a sample project with this approach. Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.

    XamDataGridDisableClearAll.zip
Children