This PDF shows clear details of how to export grades from MyMathLab (MML) and import them into D2L.  Even if you do not use MML, the instructions are very helpful for how to import grades to D2L generically, even if they are coming from a spreadsheet or another online homework platform.