public void CancelChanges()Public Sub CancelChangespublic:
void CancelChanges()member CancelChanges : unit -> unit This will call the CancelChanges method on the current row template. It will also call the CancelCurrentEdit method for the data source in the current binding context.
Due to the way data binding works in .NET, pending changes to the current row may not have been committed to the data source when you are ready to save changes to the underlying data source. As such, you should always call the CommitChanges or CancelChanges method on the data list control prior to checking for or saving changes in its underlying data source.