Although I should point out those are a different kind of book: these books, with associated workbooks, are for guiding you through learning Japanese at a slow and steady pace. That's super useful, but not what a grammar is about.
my book is more an encyclopeadia of the grammatical constructions used in Japan, organized by broad category, which you can cherry pick parts of to supplement whatever topics you're covering in your regular course work, or leaf through when you want to refresh your understanding of the grammar.
Books like Nakama, Genki, Japanese: the spoken language, etc. are great (although I don't like how many of these books don't use hiragana after the first few weeks), and then having a cheap grammar (this one's free, or $30 at most if you want a copy you can leaf through) alongside it only helps you get a deeper insight into the learning you're doing in your school or university course, or even your spare time.
With the associated workbook: https://www.amazon.com/Genki-Integrated-Elementary-Japanese-...