Resetting RowState

BrownFingers

Member
Joined
Nov 21, 2008
Messages
15
Programming Experience
Beginner
I have some code which adds a new record to a dataset and sets some default values. What I'd like to do is reset the rowstate after I have set the default values to unchanged, so that my save prompt only occurs when the user has actually changed something ( rather than my code )

Any ideas on how I can achieve this?
 
Any ideas on how I can achieve this?

Call AcceptChanges on the row you just added, rather than the entire dataset, as you may unwittingly set some other table's rows to be unchanged and changes will be lost without the user realising
 
Back
Top