Grating Math: What is the Largest Groove Density I can Use in my Spectrometer?

A grating with high groove density has a high dispersion. [...]