In Dorico, select the grace notes whose position relative to barlines you want to change. You can do this in Write mode and Engrave mode. Then, in the Properties panel, activate Grace note before barline in the Grace Notes group. Have you gracefully applied this notation in your scores?