Click here to Skip to main content
15,883,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I use diffgrams to find the changes made to a datatable and update my table.

But I need to check my dataset for changes and then updates if it has changes.

I tried the following code but its not effective


Let us consider Form frm and Datatable datatable as input

C#
if (dataTable == null)
    return false;

frm.BindingContext[dataTable].EndCurrentEdit();
if (dataTable.GetChanges() == null)
    return false;
return true;


It works but if I've undone any changes for example in Checkbox grid I unchecked the output is returned as changed.

Please help me to get rid of this problem
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900