Unfortunately, due to the limitations of Kontakt, it is not possible to export MIDI directly from the Grid in DM-307. However, there is a workaround using Kontakt standalone and routing that into your DAW. Please see this YouTube tutorial for instructions to do so.