How to reject changes using DatasetModels?
 
Forums / SmartComponent Library - Developer Forum / How to reject changes using DatasetModels?

How to reject changes using DatasetModels?

4 posts, 1 answered
  1. Patrik Wikström
    Patrik Wikström avatar
    68 posts
    Registered:
    15 Oct 2018
    25 Nov 2022
    Link to this post
    Is there a convenient way of rejecting all changes that been tracked in a DatasetModel? When the user just wants to undo what they've changed.
    The DatasetHelper class has a RejectNonCreateChanges method...
  2. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    25 Nov 2022 in reply to Patrik Wikström
    Link to this post
    Reject without a failed SaveChanges (typically caused by validation)?
  3. Patrik Wikström
    Patrik Wikström avatar
    68 posts
    Registered:
    15 Oct 2018
    25 Nov 2022
    Link to this post
    Before even calling SaveChanges.
  4. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    Answered
    25 Nov 2022 in reply to Patrik Wikström
    Link to this post
    You'll probably have to call the methods on the DatasetHandle or BufferHandle properties of the DatasetModel or TableModel.
4 posts, 1 answered