Welcome to the Xceed Community | Help
Community Search  
More Search Options

Reset a canceled edtion to row's previous value

Sort Posts: Previous Next
  •  06-04-2012, 10:27 AM Post no. 32209

    Reset a canceled edtion to row's previous value

    Hi, the topic title is self explanatory.

    I have an editable Xceed DataGridControl, I want to give the choice to the user when he edited a cell wrong to reset it to its previous value or to continue to edit it.

    So far I'm storing the row's initial item on the BeginningEdit event. If he chooses to reset the row, I replace the edited item I got from the CommittingEdit event with the initial one. It doesn't seem to work. Moreover I can't cancel the row edition.

     Do I have to use the Section event on the row to store the row and then afterwards to cancel its edition if necessary ?

     Thanks in advance if anyone can give me a hint.

  •  07-04-2012, 3:39 PM Post no. 32345 in reply to 32209

    Re: Reset a canceled edtion to row's previous value

    Hi Jib,

    The ability to cancel the edition and revert to the initial value is already built-in, you simply need to press the Escape key.

    On the first press it will reset the value in the cell you are currently editing back to the original value, but leave the row in edit mode. You can then start typing the correct value, or press escape again to cancel the edit on the entire row.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.