How to draw (major) grid lines only at specified positions, such as x=0, x=2 in the following MWE@ShareLaTeX (readonly now)?
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.13}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel={$x$},
ylabel={$y$},
xtick={-4,-2,...,4},
grid=major, % what aboud only at x=0 and x=2?
]
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\end{document}
