General AcceptChanges and Update Question (VB)

happycat

Member
Joined
Mar 4, 2003
Messages
11
General AcceptChanges and Update Question

I have written a simple application that allows the user to update a yes/no flag.

The columns are -- customer, resend_file (the flag), and record_date.

The only editable column is the resend_flag.

If the user changes the flag, and immediately clicks the save button it does not save the changes.

You have to make sure youve clicked out of the field into another rows resend_flag. Ive selected another row without clicking on the editable column, then clicking save, and it doesnt save.

Im sure there is a simple solution. Ive searched for information on acceptchanges and endedit. But I havent found an answer.

How do you get the datagrid to accept the changes? What method -- AcceptChanges? and What Event?

Thanks for any help.
 
AcceptChanges is not to actually save the data, its only a flag to indicate that you have indeed accepted the changes. So that the next time you call the HasChanges it will have a value of False.

To save items in a grid search the Code Library, I posted a sample there.
 
Back
Top