You can use
DataTable.GetChanges[
^] and check if it returns null or not.
Or you can loop over the rows in the
DataTable
and check the
DataRow.RowState[
^] property, with linq it would look something like this
bool hasChanges = myDataTable.Rows.Cast<DataRow>()
.Any(r => r.RowState != DataRowState.Unchanged);