The issue of static build-up is common. It is worse in dry and cool climates, and really bad with a glass platen.
In the winter (low humidity and lower temperatures), most of us have to deal with it. Grounding the chassis of the grinder to a good earth ground (metal water pipe or ground rod) will usually take care of it. If the shop wiring is correct, this is already done by the power cord from the grinder and the wires coming from the breaker panel. Making sure the grinder is plugged into a properly wired and grounded outlet or cord is important for safety reasons.
In the case of static electricity, it is you that needs to be grounded. A ground strap from your shoes works well (search heel ground straps on Amazon/ebay) or a wrist ground strap ( search wrist ground strap) will allow the static to discharge and not build up.
An easy ground for knifemakers is a waist strap. Take a 36-48" piece of very flexible thin wire (20 gauge stranded wire is good), or use costume jewelry chain, and put an alligator clip on one end and a small piece of copper (1x3" is good) on the other. Stick the metal in your waistband or pants pocket and clip the other end on the grinder chassis. Technically, you should put a 1 megaohm resistor in the wire at the alligator clip end, but that really isn't necessary for a knife grinder situation.
Nerd stuff:
When the belt goes round and round your grinder, it pulls electrons from the earth and deposits them into you. You are wearing rubber soled shoes and standing on dry cement. There is no easy path for the electrons to get back to the earth. Thus, they build up a charge in you. This can become as high as 75,000 electron volts, but usually discharges around 10,000 EV. You reach out to the grinder or get your hand b]near the metal while grinding and ZAP! a tiny lightning bolt jumps the gap from you to the earth.