Take into account grid inverter that using direct power control is vulnerable to the disturbance of grid voltage, a control algorithm is proposed based on the relationship between the power and voltage, which is deduced according to the mathematic model of the inverter that using double-loop control strategy. The change amount of the output power of inverter is added to the reference of power closed-loop as power feedforward, which improves the dynamic response to the grid voltage change. Simulations with EMTDC/PSCAD are carried out and the comparison of output power response to grid voltage change between control with and without power feedforward verifies its effectiveness.