How to say “grammatical case” in Chinese?
It is just 格, while the Wikipedia page also lists 语义格 as a possibility.

格语法 is not acceptable, as it would mean a grammar of some kind, but not "case".

"case ending" might be 格词尾.