As others have suggested, Genki or みんあの日本語 are the standards for introduction to grammar.
Once you have a bit of a foundation looking things up in “A Dictionary of Basic Japanese Grammar” is a useful.
For reinforcing both context and grammar I surface context sentences during review via Simple Show Context Sentence. I think it helps with both grammar and comprehension and does not feel like cheating at all.