Reverse Changes

  • Thread starter Thread starter BD
  • Start date Start date
B

BD

I want to place a button on a form so the user can reverse data entry
changes to an existing record. Does anyone have any ideas on how to
code this. The form has 2 datagridviews on it as well.

Thanks in advance,

BD
 
BD,

Well, if you are bound to a current datarow in a data table, then you
should be able to call RejectChanges on the row and it will cancel the edit,
reverting the values back to the values that were originally in the row.

If you have everything data bound to the rows as well, then the
databindings should update automatically as well.

Hope this helps.
 
BD,

Well, if you are bound to a current datarow in a data table, then you
should be able to call RejectChanges on the row and it will cancel the edit,
reverting the values back to the values that were originally in the row.

If you have everything data bound to the rows as well, then the
databindings should update automatically as well.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)




I want to place a button on a form so the user can reverse data entry
changes to an existing record. Does anyone have any ideas on how to
code this. The form has 2 datagridviews on it as well.
Thanks in advance,
BD- Hide quoted text -

- Show quoted text -

Thank you much. Couldn't find the right wording.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top