Is there a way to have data tables automatically accept changes or just disable change tracking when making modifications to rows?
When making changes to a datatable, forgetting to call DataTable.AcceptChanges() can cause a real problem.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think the whole point of a
DataTableis to have the added benefits of row versioning and change tracking. I do not think you can actually disable this behavior. From MSDN:Do you want to disable row versioning completely or only in specific occasions?