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
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.