The current ruling Grimaldi family first seized temporary control in 1297 , and again in 1331 , but were not able to permanently secure their holding until 1419 .