How do I deduct my contribution to my grandson's 529 plan on my Virginia State form?

Federal form says I don't need it and my state form won't let me put it in because it's not on my Federal form.