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
300
Disable lost focus for add row
posted

The xamGrid by default allow you to add a row by hitting the enter key or by clicking off of it. How do I only allow the enter key to be press to add a record and disable adding a row when clicking off of it? 

Parents
  • 30945
    Verified Answer
    Offline posted

    Hello,

     

    I have created a sample application for you, which demonstrates an approach for implementing the functionality that you are looking for. In order to do that I have used the CellExitingEditMode event of the XamDataGrid and cancel it until the Enter key is pressed or Escape key is pressed in order to cancel the adding.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    AddRowOnEnterPressed.zip
Reply Children