at a minimum you will need a dpdt relay
and even then you risk damage to the inverter should something stick
or break in the relay.
best to use a reversing contactor such as
http://www.ebay.com/itm/Fuji-Reversing-Contactor-4NC0G0-SC-05-w-Interlock-SZ-RM-OL-Relay-JEMLR-TR-0N-/300785075580?pt=LH_DefaultDomain_0&hash=item460830057cyou could strip away the lower overload relay, and use only a pair of contacts on each of the contactors
reversing contactors are both mechanically and electrically interlocked, and the contacts are separated sufficiently to keep from having catastrophic failures (grid to generator or grid to inverter crashes, where the grid always wins)
these reversing contactors are generally always 3 phase and are used to reverse motors, however all you need to do is reverse flow the wiring so to speak. just put the grid into the bottom of one contactor, the inverter into the bottom of the other, and connect the load to the jumpered top connections of both contactors.
this way the only way your load will connect is either to the grid or to the inverter, but not both under any circumstances.
while the rev contactor offered on ebay is larger than you need, it is a good one and will last forever.
one thing to keep in mind is the control coil voltage, commonly they are 24vac, 120, 240 and sometimes 480volt coils, (an there are a few other odd voltages and some dc ones as well) so keep this in mind before you buy one. having said that the coils are generally replaceable with whatever voltage you want for a price of course.
most contactors are also rebuildable, should the time come you can replace the contact elements, springs and such for a reasonable price.
fwiw
bob g