TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
If you only want to activate the dashing of the grid on a per-plot basis, then you can put the command in the axis command, i.e. \begin{axis}[grid=major,grid style={dashed}]. – Mark S. EverittNov 23 '11 at 6:06