i want to see if data in the datagridview has changed or not after i selected it from datatable
so i want to compare between datatable data and datagridview data
Checking if data in datagridview equal to data in datatable
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Akkiraju IvaturiRank #474 · 5.2K pointsPosted Jan 20, 2013, 2:43 PM EST
Whenever you do any changes, flag the appropriate row as changed in the new column that you have added in the dataset in the session variable. After the changes commit the changes to dataset and again assign the dataset to the same session variable.
Whenever you want to find out if there are any changes, query the datatable in the session variable dataset to find if any of the row has the flag column set to some value.
Let me know if you have questions on the same.