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
340
How to manually cancel data in a row.
posted

Hi,

I want to cancel all the data entred in active row on click of a button on the form.

For example, user entered data in few cells of the row and then on click of a button on thef form, all the data get reset. Is there any function to achieve this

 Thanks in advance,

Parv

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Parv,

        A user can cancel all of the changes in the current row by pressing Escape twice. You can do the same thing in code by calling the CancelUpdate method on the row.

        However, this probably won't work in a button click, because when you click a button, the grid will lose focus and commit the changes to the current row. So you would have to do this in a button or other control that does not take focus in order for it to work. You could, for example, use a ToolBar button, instead of a button on the form.  

Children
No Data