Call RejectChanges method of the datatable or datarow if the user click No. However, you must make sure that you call datatable.AcceptChanges before any editing occurs, and after updating data to the database.